1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
48 lines
979 B
Nix
48 lines
979 B
Nix
{
|
|
lib,
|
|
aioresponses,
|
|
async-upnp-client,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lxml,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "openhomedevice";
|
|
version = "2.3.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bazwilliams";
|
|
repo = "openhomedevice";
|
|
tag = version;
|
|
hash = "sha256-u05aciRFCnqMJRClUMApAPDLpXOKn4wUTLgvR7BVZTA=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
async-upnp-client
|
|
lxml
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aioresponses
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "openhomedevice" ];
|
|
|
|
enabledTestPaths = [ "tests/*.py" ];
|
|
|
|
meta = {
|
|
description = "Python module to access Linn Ds and Openhome devices";
|
|
homepage = "https://github.com/bazwilliams/openhomedevice";
|
|
changelog = "https://github.com/bazwilliams/openhomedevice/releases/tag/${version}";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|