depot/third_party/nixpkgs/pkgs/development/python-modules/python-slugify/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

47 lines
835 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, text-unidecode
, unidecode
}:
buildPythonPackage rec {
pname = "python-slugify";
version = "6.1.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "un33k";
repo = pname;
rev = "v${version}";
hash = "sha256-JGjUNBEMuICsaClQGDSGX4qFRjecVKzmpPNRUTvfwho=";
};
propagatedBuildInputs = [
text-unidecode
unidecode
];
checkInputs = [
pytestCheckHook
];
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 ];
};
}