nixpkgs/pkgs/development/python-modules/jaraco_text/default.nix

34 lines
763 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, pythonOlder
, importlib-resources
, jaraco_functools
, setuptools-scm
}:
2018-09-03 02:20:00 +02:00
buildPythonPackage rec {
pname = "jaraco.text";
version = "3.5.1";
2018-09-03 02:20:00 +02:00
src = fetchPypi {
inherit pname version;
sha256 = "ede4e9103443b62b3d1d193257dfb85aab7c69a6cef78a0887d64bb307a03bc3";
2018-09-03 02:20:00 +02:00
};
pythonNamespaces = [ "jaraco" ];
nativeBuildInputs =[ setuptools-scm ];
propagatedBuildInputs = [
jaraco_functools
] ++ lib.optional (pythonOlder "3.7") [ importlib-resources ];
# no tests in pypi package
2018-09-03 02:20:00 +02:00
doCheck = false;
meta = with lib; {
description = "Module for text manipulation";
homepage = "https://github.com/jaraco/jaraco.text";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
2018-09-03 02:20:00 +02:00
}