diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-07 20:47:55 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-07 20:47:55 +0100 |
commit | a7764796a62236e936cdf018a4a737fccc134ec5 (patch) | |
tree | b7f013931c879acdc4b1ac4c80e27ccf02e95847 /pkgs/development/python-modules/airly | |
parent | 210b6509eda2a217adb8b2ec2eebe95c33ad146e (diff) | |
download | nixpkgs-a7764796a62236e936cdf018a4a737fccc134ec5.tar nixpkgs-a7764796a62236e936cdf018a4a737fccc134ec5.tar.gz nixpkgs-a7764796a62236e936cdf018a4a737fccc134ec5.tar.bz2 nixpkgs-a7764796a62236e936cdf018a4a737fccc134ec5.tar.lz nixpkgs-a7764796a62236e936cdf018a4a737fccc134ec5.tar.xz nixpkgs-a7764796a62236e936cdf018a4a737fccc134ec5.tar.zst nixpkgs-a7764796a62236e936cdf018a4a737fccc134ec5.zip |
python3Packages.airly: init at 1.0.0
Diffstat (limited to 'pkgs/development/python-modules/airly')
-rw-r--r-- | pkgs/development/python-modules/airly/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/airly/default.nix b/pkgs/development/python-modules/airly/default.nix new file mode 100644 index 00000000000..e75653fb684 --- /dev/null +++ b/pkgs/development/python-modules/airly/default.nix @@ -0,0 +1,35 @@ +{ 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 ]; + }; +} |