mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 10:34:54 +00:00

Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
34 lines
862 B
Nix
34 lines
862 B
Nix
{ lib, buildPythonPackage, fetchPypi, unidecode, regex, unittestCheckHook }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "awesome-slugify";
|
|
version = "1.6.5";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0wgxrhr8s5vk2xmcz9s1z1aml4ppawmhkbggl9rp94c747xc7pmv";
|
|
};
|
|
|
|
prePatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace 'Unidecode>=0.04.14,<0.05' 'Unidecode>=0.04.14'
|
|
'';
|
|
|
|
patches = [
|
|
./slugify_filename_test.patch # fixes broken test by new unidecode
|
|
];
|
|
|
|
propagatedBuildInputs = [ unidecode regex ];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/dimka665/awesome-slugify";
|
|
description = "Python flexible slugify function";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|