python312Packages.osmnx: 1.9.3 → 2.0.0 (#360529)
[NixPkgs.git] / pkgs / development / python-modules / pyhomeworks / default.nix
blob48726ee9726023517d921fa7ee7cbf382fe7d090
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pythonOlder,
6   setuptools,
7 }:
9 buildPythonPackage rec {
10   pname = "pyhomeworks";
11   version = "1.1.2";
12   pyproject = true;
14   disabled = pythonOlder "3.6";
16   src = fetchPypi {
17     inherit pname version;
18     hash = "sha256-Jq+rjhjmnPFNaEuCHyi+8i20RgLf1rpZg6QqwE7ax7M=";
19   };
21   postPatch = ''
22     substituteInPlace pyproject.toml \
23       --replace-fail "setuptools~=69.2.0" "setuptools" \
24       --replace-fail ', "wheel~=0.43.0"' ""
25   '';
27   build-system = [ setuptools ];
29   # Project has no real tests
30   doCheck = false;
32   pythonImportsCheck = [ "pyhomeworks" ];
34   meta = with lib; {
35     description = "Python interface to Lutron Homeworks Series 4/8";
36     homepage = "https://github.com/dubnom/pyhomeworks";
37     license = licenses.mit;
38     maintainers = with maintainers; [ fab ];
39   };