mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 16:11:22 +00:00
python3Packages.unidecode: enable tests
This commit is contained in:
@@ -1,22 +1,33 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, glibcLocales }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Unidecode";
|
||||
pname = "unidecode";
|
||||
version = "1.3.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-bvrAkL+PKZcK/JDK9Nquh7FycJt4bLG02i0MBiRDHsw=";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "avian2";
|
||||
repo = pname;
|
||||
rev = "${pname}-${version}";
|
||||
sha256 = "07789mrq0gjxrg1b9a3ypzzfww224sbj25wl0h9nik22sjwi8qhh";
|
||||
};
|
||||
|
||||
LC_ALL="en_US.UTF-8";
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
buildInputs = [ glibcLocales ];
|
||||
pythonImportsCheck = [ "unidecode" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://pypi.python.org/pypi/Unidecode/";
|
||||
description = "ASCII transliterations of Unicode text";
|
||||
license = licenses.gpl2;
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user