Merge pull request #119139 from fabaff/nexia

python3Packages.nexia: init at 0.9.6

authored by

Sandro and committed by
GitHub
aabba682 92433bd9

+45
+43
pkgs/development/python-modules/nexia/default.nix
···
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pytestCheckHook 5 + , pythonOlder 6 + , requests 7 + , requests-mock 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "nexia"; 12 + version = "0.9.6"; 13 + disabled = pythonOlder "3.5"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "bdraco"; 17 + repo = pname; 18 + rev = version; 19 + sha256 = "1k8h1p2zqm8gghff03jh8q3zik7jw2l686cyyg36r3qrgz6zi19q"; 20 + }; 21 + 22 + propagatedBuildInputs = [ 23 + requests 24 + ]; 25 + 26 + checkInputs = [ 27 + requests-mock 28 + pytestCheckHook 29 + ]; 30 + 31 + postPatch = '' 32 + substituteInPlace setup.py --replace '"pytest-runner",' "" 33 + ''; 34 + 35 + pythonImportsCheck = [ "nexia" ]; 36 + 37 + meta = with lib; { 38 + description = "Python module for Nexia thermostats"; 39 + homepage = "https://github.com/bdraco/nexia"; 40 + license = with licenses; [ asl20 ]; 41 + maintainers = with maintainers; [ fab ]; 42 + }; 43 + }
+2
pkgs/top-level/python-packages.nix
··· 4622 4623 nevow = callPackage ../development/python-modules/nevow { }; 4624 4625 nghttp2 = (toPythonModule (pkgs.nghttp2.override { 4626 inherit (self) python cython setuptools; 4627 inherit (pkgs) ncurses;
··· 4622 4623 nevow = callPackage ../development/python-modules/nevow { }; 4624 4625 + nexia = callPackage ../development/python-modules/nexia { }; 4626 + 4627 nghttp2 = (toPythonModule (pkgs.nghttp2.override { 4628 inherit (self) python cython setuptools; 4629 inherit (pkgs) ncurses;