about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/rply/default.nix
blob: 0da9d2b71018fa17487f4fddc3bf75e2b09ee034 (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
{ lib, stdenv, pytest, fetchFromGitHub, buildPythonPackage, appdirs }:

buildPythonPackage rec {
  pname = "rply";
  version = "0.7.7";

  src = fetchFromGitHub {
    owner = "alex";
    repo = "rply";
    rev = "v${version}";
    sha256 = "1qv37hn7hhxd388znri76g0zjxsbwhxhcaic94dvw9pq4l60vqp6";
  };

  propagatedBuildInputs = [ appdirs ];

  checkInputs = [ pytest ];
  checkPhase = ''
    HOME=$(mktemp -d) py.test tests
  '';

  meta = with lib; {
    description = "A python Lex/Yacc that works with RPython";
    homepage = "https://github.com/alex/rply";
    license = licenses.bsd3;
    maintainers = with maintainers; [ nixy ];
  };
}