My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/json-home-client/default.nix

40 lines
820 B

{ 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 ];
};
}