about summary refs log tree commit diff
path: root/pkgs/development/python-modules/rnc2rng/default.nix
blob: 90bfc37266f808c2365bd040b2c86dc5727d7e75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib
, buildPythonPackage
, fetchPypi
, python
, rply
}:

buildPythonPackage rec {
  pname = "rnc2rng";
  version = "2.7.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-3Z/7vWnQnLB+bnqM+A/ShwP9xtO5Am+HVrScvjMUZ2s=";
  };

  propagatedBuildInputs = [ rply ];

  checkPhase = "${python.interpreter} test.py";

  meta = with lib; {
    homepage = "https://github.com/djc/rnc2rng";
    description = "Compact to regular syntax conversion library for RELAX NG schemata";
    mainProgram = "rnc2rng";
    license = licenses.mit;
    maintainers = with maintainers; [ bcdarwin ];
  };
}