Unverified Commit 27fc728a authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #266210 from fabaff/pysuez

python311Packages.pysuez: init at 0.2.0
parents 6f2a4ca9 74971b13
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, requests
, pythonOlder
}:

buildPythonPackage rec {
  pname = "pysuez";
  version = "0.2.0";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "ooii";
    repo = "pySuez";
    rev = "refs/tags/v${version}";
    hash = "sha256-Xgd0E/oFO2yyytBjuwr1vDJfKWC0Iw8P6GStCuCni/g=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    requests
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [
    "pysuez"
  ];

  meta = with lib; {
    description = "Module to get water consumption data from Suez";
    homepage = "https://github.com/ooii/pySuez";
    changelog = "https://github.com/ooii/pySuez/releases/tag/v${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ fab ];
  };
}
+2 −1
Original line number Diff line number Diff line
@@ -4145,7 +4145,8 @@
      subarulink
    ];
    "suez_water" = ps: with ps; [
    ]; # missing inputs: pysuez
      pysuez
    ];
    "sun" = ps: with ps; [
    ];
    "supervisord" = ps: with ps; [
+2 −0
Original line number Diff line number Diff line
@@ -9264,6 +9264,8 @@ self: super: with self; {
  pysubs2 = callPackage ../development/python-modules/pysubs2 { };
  pysuez = callPackage ../development/python-modules/pysuez { };
  pysqlitecipher = callPackage ../development/python-modules/pysqlitecipher { };
  pysyncthru = callPackage ../development/python-modules/pysyncthru { };