depot/third_party/nixpkgs/pkgs/development/python-modules/json-home-client/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

42 lines
835 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build inputs
typing-extensions,
uri-template,
}:
buildPythonPackage rec {
pname = "json-home-client";
version = "1.1.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "plinss";
repo = "json_home_client";
rev = "v${version}";
hash = "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 = [ ];
};
}