1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
40 lines
781 B
Nix
40 lines
781 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
# build inputs
|
|
typing-extensions,
|
|
uri-template,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "json-home-client";
|
|
version = "1.1.1";
|
|
format = "setuptools";
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|