Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / aqipy-atmotech / default.nix
bloba9b82ca6ad199d01c6ef0252716be23c30ea03f5
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "aqipy-atmotech";
10   version = "0.1.5";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchFromGitHub {
16     owner = "atmotube";
17     repo = "aqipy";
18     rev = version;
19     hash = "sha256-tqHhfJmtVFUSO57Cid9y3LK4pOoG7ROtwDT2hY5IE1Y=";
20   };
22   nativeCheckInputs = [
23     pytestCheckHook
24   ];
26   postPatch = ''
27     substituteInPlace setup.py \
28       --replace "'pytest-runner'" ""
29   '';
31   pythonImportsCheck = [
32     "aqipy"
33   ];
35   meta = with lib; {
36     description = "Library for AQI calculation";
37     homepage = "https://github.com/atmotube/aqipy";
38     license = licenses.asl20;
39     maintainers = with maintainers; [ fab ];
40   };