nixpkgs/pkgs/development/python-modules/pyeight/default.nix

42 lines
768 B
Nix
Raw Normal View History

2021-02-17 19:15:06 +00:00
{ lib
, aiohttp
, async-timeout
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
2021-02-17 19:15:06 +00:00
}:
buildPythonPackage rec {
pname = "pyeight";
version = "0.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
2021-02-17 19:15:06 +00:00
src = fetchFromGitHub {
owner = "mezz64";
repo = "pyEight";
rev = version;
sha256 = "sha256-ERilZWroFaBCYjTfU7W0vegJaGibmJYVcgt0z84TPEI=";
2021-02-17 19:15:06 +00:00
};
propagatedBuildInputs = [
aiohttp
async-timeout
];
# Module has no tests
2021-02-17 19:15:06 +00:00
doCheck = false;
pythonImportsCheck = [
"pyeight"
];
2021-02-17 19:15:06 +00:00
meta = with lib; {
description = "Python library to interface with the Eight Sleep API";
homepage = "https://github.com/mezz64/pyEight";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}