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