summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/baron/default.nix
blob: 36421a2d87a5e93524437e37b44d68bd2aa7b6e0 (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
37
38
39
{
  lib,
  fetchPypi,
  buildPythonPackage,
  setuptools,
  rply,
  pytestCheckHook,
  isPy3k,
}:

buildPythonPackage (finalAttrs: {
  pname = "baron";
  version = "0.10.1";
  pyproject = true;

  __structuredAttrs = true;

  src = fetchPypi {
    inherit (finalAttrs) pname version;
    hash = "sha256-r4Iq1E1OtCXIUW30I5rE/bqf2zmO935JJM18m0BFvC8=";
  };

  build-system = [ setuptools ];

  dependencies = [ rply ];

  nativeCheckInputs = [ pytestCheckHook ];

  doCheck = isPy3k;

  pythonImportsCheck = [ "baron" ];

  meta = {
    homepage = "https://github.com/PyCQA/baron";
    description = "Abstraction on top of baron, a FST for python to make writing refactoring code a realistic task";
    license = lib.licenses.lgpl3Plus;
    maintainers = with lib.maintainers; [ marius851000 ];
  };
})