depot/third_party/nixpkgs/pkgs/development/python-modules/pyschlage/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

53 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pycognito
, pytestCheckHook
, pythonOlder
, requests
, setuptools
, setuptools-scm
}:
buildPythonPackage rec {
pname = "pyschlage";
version = "2023.11.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "dknowles2";
repo = "pyschlage";
rev = "refs/tags/${version}";
hash = "sha256-18kVXGpklfvCGOy2jBOG9BAAzE0ZVQ3LONjiwo9YnjU=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
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 ];
};
}