summary refs log tree commit diff
path: root/pkgs/development/python-modules/scim2-filter-parser/default.nix
blob: 821cba98698080f4ceb239f180cfceb6520a5d99 (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
30
31
32
33
34
35
36
37
38
{ stdenv, lib, fetchFromGitHub, buildPythonPackage, unittestCheckHook
, pytest-runner, django
, sly }:

buildPythonPackage rec {
  pname = "scim2-filter-parser";
  version = "0.4.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "15five";
    repo = pname;
    # gets rarely updated, we can then just replace the hash
    rev = "refs/tags/${version}";
    hash = "sha256-ZemR5tn+T9WWgNB1FYrPJO6zh8g9zjobFZemi+MHkEE=";
  };

  propagatedBuildInputs = [
    sly
  ];

  pythonImportsCheck = [
    "scim2_filter_parser"
  ];

  nativeCheckInputs = [
    django
    pytest-runner
    unittestCheckHook
  ];

  meta = with lib; {
    description = "A customizable parser/transpiler for SCIM2.0 filters";
    homepage    = "https://github.com/15five/scim2-filter-parser";
    license     = licenses.mit;
    maintainers = with maintainers; [ s1341 ];
  };
}