depot/third_party/nixpkgs/pkgs/development/python-modules/pynuki/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

47 lines
891 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 ];
};
}