Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pysuez / default.nix
blob8af1c7ff006b4b8d39e743cbb36969af6b0d8709
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , regex
6 , requests
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "pysuez";
12   version = "0.2.0";
13   pyproject = true;
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "ooii";
19     repo = "pySuez";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-Xgd0E/oFO2yyytBjuwr1vDJfKWC0Iw8P6GStCuCni/g=";
22   };
24   postPatch = ''
25     substituteInPlace setup.py \
26       --replace ", 'datetime'" ""
27   '';
29   nativeBuildInputs = [
30     setuptools
31   ];
33   propagatedBuildInputs = [
34     regex
35     requests
36   ];
38   # Module has no tests
39   doCheck = false;
41   pythonImportsCheck = [
42     "pysuez"
43   ];
45   meta = with lib; {
46     description = "Module to get water consumption data from Suez";
47     mainProgram = "pysuez";
48     homepage = "https://github.com/ooii/pySuez";
49     changelog = "https://github.com/ooii/pySuez/releases/tag/v${version}";
50     license = licenses.asl20;
51     maintainers = with maintainers; [ fab ];
52   };