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

44 lines
940 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
jsonschema,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "rachiopy";
version = "1.1.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rfverbruggen";
repo = "rachiopy";
rev = "refs/tags/${version}";
hash = "sha256-PsdEXNy8vUxba/C00ARhLTQU9gMlChy9XdU20r+Maus=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [
jsonschema
pytestCheckHook
];
pythonImportsCheck = [ "rachiopy" ];
meta = with lib; {
description = "Python client for Rachio Irrigation controller";
homepage = "https://github.com/rfverbruggen/rachiopy";
changelog = "https://github.com/rfverbruggen/rachiopy/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}