default.nix (746B)
1 { 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 }: 6 7 python3Packages.buildPythonApplication rec { 8 pname = "rst2txt"; 9 version = "1.1.0"; 10 11 src = fetchFromGitHub { 12 owner = "stephenfin"; 13 repo = "rst2txt"; 14 rev = version; 15 hash = "sha256-UqY+qD1S8tyRxvQ0GIzfBlHzsdVSaEJkmgw1WC0H/KA="; 16 }; 17 18 build-system = with python3Packages; [ setuptools-scm ]; 19 20 SETUPTOOLS_SCM_PRETEND_VERSION = version; 21 22 dependencies = with python3Packages; [ 23 docutils 24 pygments 25 setuptools # pkg_resources 26 ]; 27 28 doCheck = false; 29 30 meta = { 31 description = "Convert reStructuredText to plain text"; 32 homepage = "https://github.com/stephenfin/rst2txt"; 33 license = lib.licenses.bsd2; 34 maintainers = [ lib.maintainers.sikmir ]; 35 }; 36 }