nixpkgs/pkgs/development/python-modules/airly/default.nix

47 lines
883 B
Nix
Raw Normal View History

2021-01-07 19:47:55 +00:00
{ lib
2021-04-01 20:05:39 +01:00
, aiohttp
, aioresponses
, aiounittest
2021-01-07 19:47:55 +00:00
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "airly";
2021-04-01 20:05:39 +01:00
version = "1.1.0";
2021-01-07 19:47:55 +00:00
src = fetchFromGitHub {
owner = "ak-ambi";
repo = "python-airly";
rev = "v${version}";
2021-04-01 20:05:39 +01:00
sha256 = "sha256-weliT/FYnRX+pzVAyRWFly7lfj2z7P+hpq5SIhyIgmI=";
2021-01-07 19:47:55 +00:00
};
propagatedBuildInputs = [ aiohttp ];
2021-04-01 20:05:39 +01:00
checkInputs = [
aioresponses
aiounittest
pytestCheckHook
];
preCheck = ''
cd tests
'';
2021-01-07 19:47:55 +00:00
disabledTests = [
"InstallationsLoaderTestCase"
"MeasurementsSessionTestCase"
];
2021-04-01 20:05:39 +01:00
2021-01-07 19:47:55 +00:00
pythonImportsCheck = [ "airly" ];
meta = with lib; {
description = "Python module for getting air quality data from Airly sensors";
homepage = "https://github.com/ak-ambi/python-airly";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}