depot/third_party/nixpkgs/pkgs/development/python-modules/asmog/default.nix
Default email f61cd259d4 Project import generated by Copybara.
GitOrigin-RevId: 82155ff501c7622cb2336646bb62f7624261f6d7
2021-10-01 17:20:50 +08:00

38 lines
787 B
Nix

{ lib
, aiohttp
, async-timeout
, buildPythonPackage
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "asmog";
version = "0.0.6";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "14b8hdxcks6qyrqpp4mm77fvzznbskqn7fw9qgwgcqx81pg45iwk";
};
propagatedBuildInputs = [
aiohttp
async-timeout
];
# Project doesn't ship the tests
# https://github.com/kstaniek/python-ampio-smog-api/issues/2
doCheck = false;
pythonImportsCheck = [ "asmog" ];
meta = with lib; {
description = "Python module for Ampio Smog Sensors";
homepage = "https://github.com/kstaniek/python-ampio-smog-api";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}