diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-06-08 21:17:40 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-07-22 23:07:00 +0200 |
commit | 48add123b4395c0c7bb0df69027a3820567e486a (patch) | |
tree | 0b49b5234d9e95766f12ffb46bd451f5a8ea92e7 /pkgs | |
parent | a4ba417d44583f7b6abc57b4f9ff1174cab7aa85 (diff) | |
download | nixpkgs-48add123b4395c0c7bb0df69027a3820567e486a.tar nixpkgs-48add123b4395c0c7bb0df69027a3820567e486a.tar.gz nixpkgs-48add123b4395c0c7bb0df69027a3820567e486a.tar.bz2 nixpkgs-48add123b4395c0c7bb0df69027a3820567e486a.tar.lz nixpkgs-48add123b4395c0c7bb0df69027a3820567e486a.tar.xz nixpkgs-48add123b4395c0c7bb0df69027a3820567e486a.tar.zst nixpkgs-48add123b4395c0c7bb0df69027a3820567e486a.zip |
python3Packages.python-slugify: 4.0.1 -> 5.0.2
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/python-slugify/default.nix | 51 |
1 files changed, 33 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/python-slugify/default.nix b/pkgs/development/python-modules/python-slugify/default.nix index fd488f4be9d..14d15df16f6 100644 --- a/pkgs/development/python-modules/python-slugify/default.nix +++ b/pkgs/development/python-modules/python-slugify/default.nix @@ -1,25 +1,40 @@ -{ lib, fetchPypi, buildPythonPackage, python, text-unidecode }: +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +, python +, pythonOlder +, text-unidecode +, unidecode +}: buildPythonPackage rec { - pname = "python-slugify"; - version = "4.0.1"; + pname = "python-slugify"; + version = "5.0.2"; + disabled = pythonOlder "3.6"; - src = fetchPypi { - inherit pname version; - sha256 = "69a517766e00c1268e5bbfc0d010a0a8508de0b18d30ad5a1ff357f8ae724270"; - }; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-8TODoLn8vmSaGJK5yOtPjqsdbYS4S7emJDF6+pgVnKs="; + }; - propagatedBuildInputs = [ text-unidecode ]; + propagatedBuildInputs = [ + text-unidecode + unidecode + ]; - checkPhase = '' - ${python.interpreter} test.py - ''; + checkInputs = [ + pytestCheckHook + ]; - meta = with lib; { - homepage = "https://github.com/un33k/python-slugify"; - description = "A Python Slugify application that handles Unicode"; - license = licenses.mit; - platforms = platforms.all; - maintainers = with maintainers; [ vrthra ]; - }; + pytestFlagsArray = [ "test.py" ]; + + pythonImportsCheck = [ "slugify" ]; + + meta = with lib; { + description = "Python Slugify application that handles Unicode"; + homepage = "https://github.com/un33k/python-slugify"; + license = licenses.mit; + maintainers = with maintainers; [ vrthra ]; + }; } |