pythonPackages.json-home-client: init at 1.1.1

This commit is contained in:
Dzmitry Malyshau 2022-04-07 15:01:19 +02:00 committed by Silvan Mosberger
parent ea39bd5ffb
commit d82ad37511
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
# build inputs
, typing-extensions
, uri-template
}:
buildPythonPackage rec {
pname = "json-home-client";
version = "1.1.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "plinss";
repo = "json_home_client";
rev = "v${version}";
sha256 = "sha256-DhnvvY1nMe1sdRE+OgjBt4TsLmiqnD8If4rl700zW9E=";
};
postPatch = ''
sed -i -e 's/0.0.0/${version}/' setup.py
'';
propagatedBuildInputs = [
typing-extensions
uri-template
];
pythonImportsCheck = [ "json_home_client" ];
meta = with lib; {
description = "Client class for calling http+json APIs in Python";
homepage = "https://github.com/plinss/json_home_client";
license = licenses.mit;
maintainers = [ maintainers.kvark ];
};
}

View file

@ -4335,6 +4335,8 @@ in {
jsonmerge = callPackage ../development/python-modules/jsonmerge { }; jsonmerge = callPackage ../development/python-modules/jsonmerge { };
json-home-client = callPackage ../development/python-modules/json-home-client { };
json-merge-patch = callPackage ../development/python-modules/json-merge-patch { }; json-merge-patch = callPackage ../development/python-modules/json-merge-patch { };
json-schema-for-humans = callPackage ../development/python-modules/json-schema-for-humans { }; json-schema-for-humans = callPackage ../development/python-modules/json-schema-for-humans { };