Merge pull request #207947 from s1341/init_django_scim2
This commit is contained in:
commit
51cc55acc1
3 changed files with 94 additions and 0 deletions
52
pkgs/development/python-modules/django-scim2/default.nix
Normal file
52
pkgs/development/python-modules/django-scim2/default.nix
Normal file
|
@ -0,0 +1,52 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# propagates
|
||||
, django
|
||||
, dateutil
|
||||
, scim2-filter-parser
|
||||
, gssapi
|
||||
, ldap
|
||||
, sssd
|
||||
|
||||
# tests
|
||||
, mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-scim2";
|
||||
version = "0.17.3";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "15five";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-5zdGPpjooiFoj+2OoglXhhKsPFB/KOHvrZWZd+1nZqU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
django
|
||||
dateutil
|
||||
scim2-filter-parser
|
||||
gssapi
|
||||
ldap
|
||||
sssd
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"django_scim"
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A SCIM 2.0 Service Provider Implementation (for Django)";
|
||||
homepage = "https://github.com/15five/django-scim2";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ s1341 ];
|
||||
};
|
||||
}
|
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -2590,6 +2590,8 @@ self: super: with self; {
|
|||
|
||||
django-scopes = callPackage ../development/python-modules/django-scopes { };
|
||||
|
||||
django-scim2 = callPackage ../development/python-modules/django-scim2 { };
|
||||
|
||||
djangoql = callPackage ../development/python-modules/djangoql { };
|
||||
|
||||
django-ranged-response = callPackage ../development/python-modules/django-ranged-response { };
|
||||
|
@ -10107,6 +10109,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 { };
|
||||
|
|
Loading…
Reference in a new issue