Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 34 lines 687 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "pysubs2"; 11 version = "1.7.3"; 12 format = "pyproject"; 13 14 src = fetchFromGitHub { 15 owner = "tkarabela"; 16 repo = pname; 17 rev = version; 18 hash = "sha256-PrpN+w/gCi7S9OmD6kbbvL9VlZEfy1DbehFTwjxsibA="; 19 }; 20 21 nativeBuildInputs = [ setuptools ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "pysubs2" ]; 26 27 meta = with lib; { 28 homepage = "https://github.com/tkarabela/pysubs2"; 29 description = "Python library for editing subtitle files"; 30 mainProgram = "pysubs2"; 31 license = licenses.mit; 32 maintainers = [ ]; 33 }; 34}