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

48 lines
980 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pycognito,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "pyschlage";
version = "2024.2.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "dknowles2";
repo = "pyschlage";
rev = "refs/tags/${version}";
hash = "sha256-kjAV7VHKp7WpT6dNjuzYMTlcXbyIB2MNZQXOckDLWF8=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
pycognito
requests
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pyschlage" ];
meta = with lib; {
description = "Library for interacting with Schlage Encode WiFi locks";
homepage = "https://github.com/dknowles2/pyschlage";
changelog = "https://github.com/dknowles2/pyschlage/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}