nixpkgs/pkgs/development/python-modules/airly/default.nix
2021-01-07 20:47:55 +01:00

36 lines
779 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "airly";
version = "1.0.0";
src = fetchFromGitHub {
owner = "ak-ambi";
repo = "python-airly";
rev = "v${version}";
sha256 = "0an6nbl0i5pahxm6x4z03s9apzgqrw9zf7srjcs0r3y1ppicb4s6";
};
propagatedBuildInputs = [ aiohttp ];
checkInputs = [ pytestCheckHook ];
disabledTests = [
"InstallationsLoaderTestCase"
"MeasurementsSessionTestCase"
];
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 ];
};
}