summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/sly/default.nix
blob: c563197e93ba2a2f6845e9d45038598444d78b71 (plain)
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
30
31
32
33
34
35
36
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "sly";
  version = "0.5";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-JR1CAV6FBxWK7CFk8GA130qCsDFM5kUPRX1xJedkkCQ=";
  };

  nativeBuildInputs = [ setuptools ];

  postPatch = ''
    # imperative dev dependency installation
    rm Makefile
  '';

  pythonImportsCheck = [ "sly" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Improved PLY implementation of lex and yacc for Python 3";
    homepage = "https://github.com/dabeaz/sly";
    license = lib.licenses.bsd3;
    maintainers = [ ];
  };
}