fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
39 lines
795 B
Nix
39 lines
795 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 ];
|
|
};
|
|
}
|