1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "pyhomeworks";
11 version = "1.1.2";
12 pyproject = true;
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-Jq+rjhjmnPFNaEuCHyi+8i20RgLf1rpZg6QqwE7ax7M=";
19 };
20
21 postPatch = ''
22 substituteInPlace pyproject.toml \
23 --replace-fail "setuptools~=69.2.0" "setuptools" \
24 --replace-fail ', "wheel~=0.43.0"' ""
25 '';
26
27 build-system = [ setuptools ];
28
29 # Project has no real tests
30 doCheck = false;
31
32 pythonImportsCheck = [ "pyhomeworks" ];
33
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 };
40}