Files
nixpkgs/pkgs/development/python-modules/json-home-client/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

43 lines
829 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 = {
description = "Client class for calling http+json APIs in Python";
homepage = "https://github.com/plinss/json_home_client";
license = lib.licenses.mit;
maintainers = [ ];
};
}