at master 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7 charset-normalizer, 8}: 9 10buildPythonPackage rec { 11 pname = "aeidon"; 12 version = "1.15"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "otsaloma"; 17 repo = "gaupol"; 18 tag = version; 19 hash = "sha256-lhNyeieeiBBm3rNDEU0BuWKeM6XYlOtv1voW8tR8cUM="; 20 }; 21 22 postPatch = '' 23 mv setup.py setup_gaupol.py 24 substituteInPlace setup-aeidon.py \ 25 --replace "from setup import" "from setup_gaupol import" 26 mv setup-aeidon.py setup.py 27 ''; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ charset-normalizer ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 enabledTestPaths = [ "aeidon/test" ]; 36 37 disabledTests = [ 38 # requires gspell to work with gobject introspection 39 "test_spell" 40 ]; 41 42 pythonImportsCheck = [ "aeidon" ]; 43 44 meta = with lib; { 45 changelog = "https://github.com/otsaloma/gaupol/releases/tag/${version}"; 46 description = "Reading, writing and manipulationg text-based subtitle files"; 47 homepage = "https://github.com/otsaloma/gaupol"; 48 license = licenses.gpl3Plus; 49 maintainers = with maintainers; [ erictapen ]; 50 }; 51 52}