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
47 lines
911 B
Nix
47 lines
911 B
Nix
{
|
|
lib,
|
|
bluepy,
|
|
buildPythonPackage,
|
|
csrmesh,
|
|
fetchPypi,
|
|
pycryptodome,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "avion";
|
|
version = "0.10";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-v/0NwFmxDZ9kEOx5qs5L9sKzOg/kto79syctg0Ah+30=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# https://github.com/mjg59/python-avion/pull/16
|
|
substituteInPlace setup.py \
|
|
--replace "bluepy>==1.1.4" "bluepy>=1.1.4"
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
bluepy
|
|
csrmesh
|
|
pycryptodome
|
|
requests
|
|
];
|
|
|
|
# Module has no test
|
|
doCheck = false;
|
|
|
|
# bluepy/uuids.json is not found
|
|
# pythonImportsCheck = [ "avion" ];
|
|
|
|
meta = {
|
|
description = "Python API for controlling Avi-on Bluetooth dimmers";
|
|
homepage = "https://github.com/mjg59/python-avion";
|
|
license = with lib.licenses; [ gpl3Plus ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|