mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
0215034f25
when they already rely on SRI hashes.
52 lines
929 B
Nix
52 lines
929 B
Nix
{ lib
|
|
, aioresponses
|
|
, buildPythonPackage
|
|
, orjson
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, requests-mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nexia";
|
|
version = "2.0.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bdraco";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-VBK+h5K/irI0T0eUaYC1iouzMUo/lJshLTe0h5CtnAQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
orjson
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aioresponses
|
|
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 ];
|
|
};
|
|
}
|