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
33 lines
649 B
Nix
33 lines
649 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
zeroconf,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "envoy-utils";
|
|
version = "0.0.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
pname = "envoy_utils";
|
|
inherit version;
|
|
sha256 = "13zn0d6k2a4nls9vp8cs0w07bgg4138vz18cadjadhm8p6r3bi0c";
|
|
};
|
|
|
|
propagatedBuildInputs = [ zeroconf ];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "envoy_utils" ];
|
|
|
|
meta = {
|
|
description = "Python utilities for the Enphase Envoy";
|
|
homepage = "https://pypi.org/project/envoy-utils/";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|