mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 21:16:37 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
29 lines
529 B
Nix
29 lines
529 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytest,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "text-unidecode";
|
|
version = "1.3";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "bad6603bb14d279193107714b288be206cac565dfa49aa5b105294dd5c4aab93";
|
|
};
|
|
|
|
nativeCheckInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
meta = {
|
|
description = "Most basic Text::Unidecode port";
|
|
homepage = "https://github.com/kmike/text-unidecode";
|
|
license = lib.licenses.artistic1;
|
|
};
|
|
}
|