depot/third_party/nixpkgs/pkgs/development/python-modules/pynuki/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

44 lines
888 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pynacl,
pythonOlder,
requests,
}:
buildPythonPackage rec {
pname = "pynuki";
version = "1.6.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pschmitt";
repo = "pynuki";
rev = "refs/tags/${version}";
hash = "sha256-PF5FmAuPcJXq8gQ8HyzdtL2HiiUjueT+LAS1lYRvrwM=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
pynacl
requests
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "pynuki" ];
meta = with lib; {
description = "Python bindings for nuki.io bridges";
homepage = "https://github.com/pschmitt/pynuki";
changelog = "https://github.com/pschmitt/pynuki/releases/tag/${version}";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ fab ];
};
}