mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 09:24:20 +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
31 lines
675 B
Nix
31 lines
675 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
requests-oauthlib,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-google-nest";
|
|
version = "5.2.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-qL4Qk2NW41Sb9raF0vnEb04w3uyaWPauDnNY+DvnNgQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ requests-oauthlib ];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "nest" ];
|
|
|
|
meta = {
|
|
description = "Python API and command line tool for talking to Nest thermostats";
|
|
homepage = "https://github.com/axlan/python-nest/";
|
|
license = lib.licenses.cc-by-nc-sa-30;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|