nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 45 lines 786 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, pythonOlder 6, text-unidecode 7, unidecode 8}: 9 10buildPythonPackage rec { 11 pname = "python-slugify"; 12 version = "6.1.1"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-AAAzl/TjFBTpIs5WezpNoozxQ2pT0zLJrutRx9jEaf0="; 20 }; 21 22 propagatedBuildInputs = [ 23 text-unidecode 24 unidecode 25 ]; 26 27 checkInputs = [ 28 pytestCheckHook 29 ]; 30 31 pytestFlagsArray = [ 32 "test.py" 33 ]; 34 35 pythonImportsCheck = [ 36 "slugify" 37 ]; 38 39 meta = with lib; { 40 description = "Python Slugify application that handles Unicode"; 41 homepage = "https://github.com/un33k/python-slugify"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ vrthra ]; 44 }; 45}