nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

package.nix (766B)


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