depot/third_party/nixpkgs/pkgs/development/python-modules/jaraco_text/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

51 lines
914 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, importlib-resources
, jaraco_functools
, jaraco-context
, setuptools-scm
}:
buildPythonPackage rec {
pname = "jaraco.text";
version = "3.8.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-RQlXw/j7mlU9nT5gc4czqxxcwns2pGM0KtuTfppwqz4=";
};
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; [ ];
};
}