mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
52 lines
915 B
Nix
52 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; [ ];
|
|
};
|
|
}
|