nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 35 lines 801 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 unittestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "cyrtranslit"; 11 version = "1.2.0"; 12 pyproject = true; 13 14 # Pypi tarball doesn't contain tests/ 15 src = fetchFromGitHub { 16 owner = "opendatakosovo"; 17 repo = "cyrillic-transliteration"; 18 tag = "v${version}"; 19 hash = "sha256-hE5fru9Y5gU4zG2Kz76w5HbVXKBua/cJdhItz3ou0kY="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 nativeCheckInputs = [ unittestCheckHook ]; 25 26 pythonImportsCheck = [ "cyrtranslit" ]; 27 28 meta = { 29 description = "Transliterate Cyrillic script to Latin script and vice versa"; 30 homepage = "https://github.com/opendatakosovo/cyrillic-transliteration"; 31 license = lib.licenses.mit; 32 maintainers = with lib.maintainers; [ erictapen ]; 33 }; 34 35}