nixpkgs/pkgs/development/python-modules/pysuez/default.nix
Martin Weinelt cd79866868
python311Packages.pysuez: propagate regex, remove datetime dependency
Checking runtime dependencies for pysuez-0.1.31-py3-none-any.whl
  - regex not installed
  - datetime not installed

The `datetime` module is a built-in since ~forever.
2023-12-20 20:10:32 +01:00

53 lines
965 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, regex
, 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=";
};
postPatch = ''
substituteInPlace setup.py \
--replace ", 'datetime'" ""
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
regex
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 ];
};
}