Merge pull request #252353 from fabaff/pydrawise

python311Packages.pydrawise: init at 2023.8.0

authored by

OTABI Tomoya and committed by
GitHub
e35f1fd9 c0a1bc5d

+116 -1
+45
pkgs/development/python-modules/apischema/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , graphql-core 5 + , pytest-asyncio 6 + , pytestCheckHook 7 + , pythonOlder 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "apischema"; 12 + version = "0.18.0"; 13 + format = "setuptools"; 14 + 15 + disabled = pythonOlder "3.7"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "wyfo"; 19 + repo = "apischema"; 20 + rev = "refs/tags/v${version}"; 21 + hash = "sha256-DBFFCLi8cpASyGPNqZvYe3OTLSbNZ8QzaxjQkOiHxFc="; 22 + }; 23 + 24 + passthru.optional-dependencies = { 25 + graphql = [ 26 + graphql-core 27 + ]; 28 + }; 29 + 30 + nativeCheckInputs = [ 31 + pytest-asyncio 32 + pytestCheckHook 33 + ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); 34 + 35 + pythonImportsCheck = [ 36 + "apischema" 37 + ]; 38 + 39 + meta = with lib; { 40 + description = "JSON (de)serialization, GraphQL and JSON schema generation using typing"; 41 + homepage = "https://github.com/wyfo/apischema"; 42 + license = licenses.mit; 43 + maintainers = with maintainers; [ fab ]; 44 + }; 45 + }
+65
pkgs/development/python-modules/pydrawise/default.nix
··· 1 + { lib 2 + , aiohttp 3 + , aioresponses 4 + , apischema 5 + , buildPythonPackage 6 + , fetchFromGitHub 7 + , freezegun 8 + , gql 9 + , graphql-core 10 + , pytest-asyncio 11 + , pytestCheckHook 12 + , pythonOlder 13 + , requests 14 + , setuptools 15 + , setuptools-scm 16 + }: 17 + 18 + buildPythonPackage rec { 19 + pname = "pydrawise"; 20 + version = "2023.8.0"; 21 + format = "pyproject"; 22 + 23 + disabled = pythonOlder "3.10"; 24 + 25 + src = fetchFromGitHub { 26 + owner = "dknowles2"; 27 + repo = "pydrawise"; 28 + rev = "refs/tags/${version}"; 29 + hash = "sha256-cnQJ0enDgOB66rEZePmfTImFrPNMiXfggATM6hsL+ag="; 30 + }; 31 + 32 + SETUPTOOLS_SCM_PRETEND_VERSION = version; 33 + 34 + nativeBuildInputs = [ 35 + setuptools 36 + setuptools-scm 37 + ]; 38 + 39 + propagatedBuildInputs = [ 40 + aiohttp 41 + apischema 42 + gql 43 + graphql-core 44 + requests 45 + ]; 46 + 47 + nativeCheckInputs = [ 48 + aioresponses 49 + freezegun 50 + pytest-asyncio 51 + pytestCheckHook 52 + ]; 53 + 54 + pythonImportsCheck = [ 55 + "pydrawise" 56 + ]; 57 + 58 + meta = with lib; { 59 + description = "Library for interacting with Hydrawise sprinkler controllers through the GraphQL API"; 60 + homepage = "https://github.com/dknowles2/pydrawise"; 61 + changelog = "https://github.com/dknowles2/pydrawise/releases/tag/${version}"; 62 + license = licenses.asl20; 63 + maintainers = with maintainers; [ fab ]; 64 + }; 65 + }
+2 -1
pkgs/servers/home-assistant/component-packages.nix
··· 1822 1822 pygti 1823 1823 ]; 1824 1824 "hydrawise" = ps: with ps; [ 1825 - ]; # missing inputs: pydrawise 1825 + pydrawise 1826 + ]; 1826 1827 "hyperion" = ps: with ps; [ 1827 1828 hyperion-py 1828 1829 ];
+4
pkgs/top-level/python-packages.nix
··· 580 580 581 581 apipkg = callPackage ../development/python-modules/apipkg { }; 582 582 583 + apischema = callPackage ../development/python-modules/apischema { }; 584 + 583 585 apispec = callPackage ../development/python-modules/apispec { }; 584 586 585 587 apispec-webframeworks = callPackage ../development/python-modules/apispec-webframeworks { }; ··· 8979 8981 pydot = callPackage ../development/python-modules/pydot { 8980 8982 inherit (pkgs) graphviz; 8981 8983 }; 8984 + 8985 + pydrawise = callPackage ../development/python-modules/pydrawise { }; 8982 8986 8983 8987 pydrive2 = callPackage ../development/python-modules/pydrive2 { }; 8984 8988