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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
896 B
Nix
Raw Normal View History

2021-02-07 22:16:44 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, requests
2022-01-23 20:50:25 +00:00
, pythonOlder
2021-02-07 22:16:44 +00:00
}:
buildPythonPackage rec {
pname = "pynuki";
2022-01-23 20:50:25 +00:00
version = "1.5.2";
2021-02-07 22:16:44 +00:00
format = "pyproject";
2022-01-23 20:50:25 +00:00
disabled = pythonOlder "3.8";
2021-02-07 22:16:44 +00:00
src = fetchFromGitHub {
owner = "pschmitt";
repo = pname;
rev = version;
sha256 = "sha256-Uqw1Xa0pBQmQsFEBv/l1gtsPy+owYcTZITOYUmMvT5Y=";
2021-02-07 22:16:44 +00:00
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'requests = ">=2.27,<3"' 'requests = "*"'
'';
2021-02-07 22:16:44 +00:00
nativeBuildInputs = [ poetry-core ];
2022-01-23 20:50:25 +00:00
propagatedBuildInputs = [
requests
];
2021-02-07 22:16:44 +00:00
# Project has no tests
doCheck = false;
2022-01-23 20:50:25 +00:00
pythonImportsCheck = [
"pynuki"
];
2021-02-07 22:16:44 +00:00
meta = with lib; {
description = "Python bindings for nuki.io bridges";
homepage = "https://github.com/pschmitt/pynuki";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ fab ];
};
}