nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytest-asyncio,
6 pytest-cov-stub,
7 pytestCheckHook,
8 requests,
9 requests-mock,
10}:
11
12buildPythonPackage rec {
13 pname = "hydrawiser";
14 version = "0.2";
15 format = "setuptools";
16
17 src = fetchFromGitHub {
18 owner = "ptcryan";
19 repo = "hydrawiser";
20 rev = "v${version}";
21 sha256 = "161hazlpvd71xcl2ja86560wm5lnrjv210ki3ji37l6c6gwmhjdj";
22 };
23
24 propagatedBuildInputs = [ requests ];
25
26 nativeCheckInputs = [
27 pytest-asyncio
28 pytest-cov-stub
29 pytestCheckHook
30 requests
31 requests-mock
32 ];
33
34 pythonImportsCheck = [ "hydrawiser" ];
35
36 meta = {
37 description = "Python library for Hydrawise API";
38 homepage = "https://github.com/ptcryan/hydrawiser";
39 license = with lib.licenses; [ mit ];
40 maintainers = with lib.maintainers; [ fab ];
41 };
42}