mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #119139 from fabaff/nexia
python3Packages.nexia: init at 0.9.6
This commit is contained in:
commit
aabba68237
2 changed files with 45 additions and 0 deletions
43
pkgs/development/python-modules/nexia/default.nix
Normal file
43
pkgs/development/python-modules/nexia/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, requests-mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nexia";
|
||||
version = "0.9.6";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bdraco";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1k8h1p2zqm8gghff03jh8q3zik7jw2l686cyyg36r3qrgz6zi19q";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
requests-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace '"pytest-runner",' ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "nexia" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module for Nexia thermostats";
|
||||
homepage = "https://github.com/bdraco/nexia";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -4622,6 +4622,8 @@ in {
|
|||
|
||||
nevow = callPackage ../development/python-modules/nevow { };
|
||||
|
||||
nexia = callPackage ../development/python-modules/nexia { };
|
||||
|
||||
nghttp2 = (toPythonModule (pkgs.nghttp2.override {
|
||||
inherit (self) python cython setuptools;
|
||||
inherit (pkgs) ncurses;
|
||||
|
|
Loading…
Reference in a new issue