depot/third_party/nixpkgs/pkgs/development/python-modules/jaraco_text/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

51 lines
915 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, importlib-resources
, jaraco_functools
, jaraco-context
, setuptools-scm
}:
buildPythonPackage rec {
pname = "jaraco.text";
version = "3.7.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-p/nMG0Sl8wlqIWy9EwtlDHprLJ+ABbAArpfzKSOafAA=";
};
pythonNamespaces = [
"jaraco"
];
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
jaraco-context
jaraco_functools
] ++ lib.optional (pythonOlder "3.9") [
importlib-resources
];
# no tests in pypi package
doCheck = false;
pythonImportsCheck = [
"jaraco.text"
];
meta = with lib; {
description = "Module for text manipulation";
homepage = "https://github.com/jaraco/jaraco.text";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}