mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
51 lines
977 B
Nix
51 lines
977 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyweatherflowrest";
|
|
version = "1.0.8";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "briis";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1swyqdnvhwaigqhjn5a22gi8if4bl8alfrigln4qa0jl9z03kg09";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace "--cov=pyweatherflowrest --cov-append" ""
|
|
'';
|
|
|
|
# Module has no tests. test.py is a demo script
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"pyweatherflowrest"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to get data from WeatherFlow Weather Stations";
|
|
homepage = "https://github.com/briis/pyweatherflowrest";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|