blob: 29e903db42e551787412e417388e16631548998f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "aqipy-atmotech";
version = "0.1.5";
format = "setuptools";
src = fetchFromGitHub {
owner = "atmotube";
repo = "aqipy";
rev = version;
hash = "sha256-tqHhfJmtVFUSO57Cid9y3LK4pOoG7ROtwDT2hY5IE1Y=";
};
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'" ""
'';
pythonImportsCheck = [ "aqipy" ];
meta = {
description = "Library for AQI calculation";
homepage = "https://github.com/atmotube/aqipy";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
|