otadump: init at 0.1.2 (#329129)
[NixPkgs.git] / pkgs / development / python-modules / aqipy-atmotech / default.nix
blob549e49b3d486617da609acc2f9fa578f477a212b
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7 }:
9 buildPythonPackage rec {
10   pname = "aqipy-atmotech";
11   version = "0.1.5";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "atmotube";
18     repo = "aqipy";
19     rev = version;
20     hash = "sha256-tqHhfJmtVFUSO57Cid9y3LK4pOoG7ROtwDT2hY5IE1Y=";
21   };
23   nativeCheckInputs = [ pytestCheckHook ];
25   postPatch = ''
26     substituteInPlace setup.py \
27       --replace "'pytest-runner'" ""
28   '';
30   pythonImportsCheck = [ "aqipy" ];
32   meta = with lib; {
33     description = "Library for AQI calculation";
34     homepage = "https://github.com/atmotube/aqipy";
35     license = licenses.asl20;
36     maintainers = with maintainers; [ fab ];
37   };