depot/third_party/nixpkgs/pkgs/development/python-modules/pyhomeworks/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

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 ];
};
}