mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
pythonPackages.json-home-client: init at 1.1.1
This commit is contained in:
parent
ea39bd5ffb
commit
d82ad37511
40
pkgs/development/python-modules/json-home-client/default.nix
Normal file
40
pkgs/development/python-modules/json-home-client/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue