From 4c24f62648ae848e7d14d3e6ddfc41daff3550d0 Mon Sep 17 00:00:00 2001 From: s1341 Date: Thu, 29 Dec 2022 13:35:29 +0200 Subject: [PATCH] python3Packages.scim2-filter-parser: init at 0.4.0 --- .../scim2-filter-parser/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/scim2-filter-parser/default.nix diff --git a/pkgs/development/python-modules/scim2-filter-parser/default.nix b/pkgs/development/python-modules/scim2-filter-parser/default.nix new file mode 100644 index 000000000000..34dfecd2ebbb --- /dev/null +++ b/pkgs/development/python-modules/scim2-filter-parser/default.nix @@ -0,0 +1,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" + ]; + + checkInputs = [ + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4ca17accf532..6f6b7ffd490f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10091,6 +10091,8 @@ self: super: with self; { schwifty = callPackage ../development/python-modules/schwifty { }; + scim2-filter-parser = callPackage ../development/python-modules/scim2-filter-parser { }; + scikit-bio = callPackage ../development/python-modules/scikit-bio { }; scikit-build = callPackage ../development/python-modules/scikit-build { };