depot/third_party/nixpkgs/pkgs/development/python-modules/pyschlage/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

48 lines
966 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pycognito,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "pyschlage";
version = "2024.8.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "dknowles2";
repo = "pyschlage";
rev = "refs/tags/${version}";
hash = "sha256-40WNvpFNBhjg2+1H5PRBlziKrcSjl1fppUk4HOmDRDk=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
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 ];
};
}