Files
nixpkgs/pkgs/development/python-modules/hydrawiser/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

45 lines
876 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
requests,
requests-mock,
}:
buildPythonPackage rec {
pname = "hydrawiser";
version = "0.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "ptcryan";
repo = "hydrawiser";
rev = "v${version}";
sha256 = "161hazlpvd71xcl2ja86560wm5lnrjv210ki3ji37l6c6gwmhjdj";
};
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytestCheckHook
requests
requests-mock
];
pythonImportsCheck = [ "hydrawiser" ];
meta = {
description = "Python library for Hydrawise API";
homepage = "https://github.com/ptcryan/hydrawiser";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}