nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, importlib-resources
6, jaraco_functools
7, jaraco-context
8, setuptools-scm
9}:
10
11buildPythonPackage rec {
12 pname = "jaraco.text";
13 version = "3.7.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "sha256-p/nMG0Sl8wlqIWy9EwtlDHprLJ+ABbAArpfzKSOafAA=";
21 };
22
23 pythonNamespaces = [
24 "jaraco"
25 ];
26
27 nativeBuildInputs = [
28 setuptools-scm
29 ];
30
31 propagatedBuildInputs = [
32 jaraco-context
33 jaraco_functools
34 ] ++ lib.optional (pythonOlder "3.9") [
35 importlib-resources
36 ];
37
38 # no tests in pypi package
39 doCheck = false;
40
41 pythonImportsCheck = [
42 "jaraco.text"
43 ];
44
45 meta = with lib; {
46 description = "Module for text manipulation";
47 homepage = "https://github.com/jaraco/jaraco.text";
48 license = licenses.mit;
49 maintainers = with maintainers; [ ];
50 };
51}