Files
nixpkgs/pkgs/development/python-modules/pydevccu/default.nix

43 lines
904 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pydevccu";
version = "0.1.10";
pyproject = true;
disabled = pythonOlder "3.13";
src = fetchFromGitHub {
owner = "SukramJ";
repo = "pydevccu";
tag = version;
hash = "sha256-MUMJjFCBJx1rps+/1Wx8RVmlA3Y4Cgflljs2u4nRMBk=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools==75.6.0" setuptools
'';
build-system = [ setuptools ];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "pydevccu" ];
meta = {
description = "HomeMatic CCU XML-RPC Server with fake devices";
homepage = "https://github.com/SukramJ/pydevccu";
changelog = "https://github.com/SukramJ/pydevccu/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}