mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 09:04:16 +01:00
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
39 lines
757 B
Nix
39 lines
757 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
python-dateutil,
|
|
requests,
|
|
six,
|
|
sseclient-py,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-nest";
|
|
version = "4.2.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-01hoZbDssbJ10NA72gOtlzjZMGjsUBUoVDVM35uAOLU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
python-dateutil
|
|
requests
|
|
six
|
|
sseclient-py
|
|
];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "nest" ];
|
|
|
|
meta = {
|
|
description = "Python API and command line tool for talking to the Nest™ Thermostat";
|
|
homepage = "https://github.com/jkoelker/python-nest";
|
|
license = lib.licenses.cc-by-nc-sa-40;
|
|
maintainers = with lib.maintainers; [ jamiemagee ];
|
|
};
|
|
}
|