nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 35 lines 681 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest, 6}: 7 8buildPythonPackage rec { 9 pname = "mutf8"; 10 version = "1.0.6"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "TkTech"; 15 repo = "mutf8"; 16 rev = "v${version}"; 17 hash = "sha256-4Ojn3t0EbOVdrYEiY8JegJuvW9sz8jt9tKFwOluiGQo="; 18 }; 19 20 nativeCheckInputs = [ pytest ]; 21 22 checkPhase = '' 23 # Using pytestCheckHook results in test failures 24 pytest 25 ''; 26 27 pythonImportsCheck = [ "mutf8" ]; 28 29 meta = { 30 description = "Fast MUTF-8 encoder & decoder"; 31 homepage = "https://github.com/TkTech/mutf8"; 32 license = lib.licenses.mit; 33 maintainers = with lib.maintainers; [ fab ]; 34 }; 35}