1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, rply
6}:
7
8buildPythonPackage rec {
9 pname = "rnc2rng";
10 version = "2.6.4";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "1kmp3iwxxyzjsd47j2sprd47ihhkwhb3yydih3af5bbfq0ibh1w8";
15 };
16
17 propagatedBuildInputs = [ rply ];
18
19 checkPhase = "${python.interpreter} test.py";
20
21 meta = with lib; {
22 homepage = "https://github.com/djc/rnc2rng";
23 description = "Compact to regular syntax conversion library for RELAX NG schemata";
24 license = licenses.mit;
25 maintainers = with maintainers; [ bcdarwin ];
26 };
27}