1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 # build inputs
7 typing-extensions,
8 uri-template,
9}:
10
11buildPythonPackage rec {
12 pname = "json-home-client";
13 version = "1.1.1";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromGitHub {
19 owner = "plinss";
20 repo = "json_home_client";
21 rev = "v${version}";
22 hash = "sha256-DhnvvY1nMe1sdRE+OgjBt4TsLmiqnD8If4rl700zW9E=";
23 };
24
25 postPatch = ''
26 sed -i -e 's/0.0.0/${version}/' setup.py
27 '';
28
29 propagatedBuildInputs = [
30 typing-extensions
31 uri-template
32 ];
33
34 pythonImportsCheck = [ "json_home_client" ];
35
36 meta = with lib; {
37 description = "Client class for calling http+json APIs in Python";
38 homepage = "https://github.com/plinss/json_home_client";
39 license = licenses.mit;
40 maintainers = [ ];
41 };
42}