From d82ad375116c9df9b1b9522e6cf0c3380c2fcab8 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Thu, 7 Apr 2022 15:01:19 +0200 Subject: [PATCH] pythonPackages.json-home-client: init at 1.1.1 --- .../json-home-client/default.nix | 40 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/python-modules/json-home-client/default.nix diff --git a/pkgs/development/python-modules/json-home-client/default.nix b/pkgs/development/python-modules/json-home-client/default.nix new file mode 100644 index 000000000000..be3d99904dcd --- /dev/null +++ b/pkgs/development/python-modules/json-home-client/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1e9dea248cc3..4196987efad2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4335,6 +4335,8 @@ in { 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-schema-for-humans = callPackage ../development/python-modules/json-schema-for-humans { };