Files

44 lines
872 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build inputs
typing-extensions,
uri-template,
setuptools,
}:
buildPythonPackage rec {
pname = "json-home-client";
version = "1.1.1";
pyproject = true;
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
'';
build-system = [ setuptools ];
dependenceis = [
typing-extensions
uri-template
];
pythonImportsCheck = [ "json_home_client" ];
meta = {
broken = lib.versionAtLeast setuptools.version "82";
description = "Client class for calling http+json APIs in Python";
homepage = "https://github.com/plinss/json_home_client";
license = lib.licenses.mit;
maintainers = [ ];
};
}