159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
39 lines
792 B
Nix
39 lines
792 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyhomeworks";
|
|
version = "1.1.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Jq+rjhjmnPFNaEuCHyi+8i20RgLf1rpZg6QqwE7ax7M=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "setuptools~=69.2.0" "setuptools"
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
# Project has no real tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pyhomeworks" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python interface to Lutron Homeworks Series 4/8";
|
|
homepage = "https://github.com/dubnom/pyhomeworks";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|