mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
38 lines
795 B
Nix
38 lines
795 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "unidecode";
|
|
version = "1.3.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "avian2";
|
|
repo = pname;
|
|
rev = "${pname}-${version}";
|
|
hash = "sha256-75E2OlrGIxvwR9MeZEB4bDLdFd1SdprCVcBIJCPS3hM=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"unidecode"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "ASCII transliterations of Unicode text";
|
|
homepage = "https://github.com/avian2/unidecode";
|
|
changelog = "https://github.com/avian2/unidecode/blob/unidecode-${version}/ChangeLog";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
};
|
|
}
|