Merge pull request #214359 from mweinelt/scim2-filter-parser-0.5.0
python310Packages.scim2-filter-parser: 0.4.0 -> 0.5.0
This commit is contained in:
commit
36309965e9
@ -1,38 +1,58 @@
|
||||
{ stdenv, lib, fetchFromGitHub, buildPythonPackage, unittestCheckHook
|
||||
, pytest-runner, django
|
||||
, sly }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, django
|
||||
, sly
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "scim2-filter-parser";
|
||||
version = "0.4.0";
|
||||
format = "setuptools";
|
||||
version = "0.5.0";
|
||||
format = "pyproject";
|
||||
|
||||
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=";
|
||||
hash = "sha256-QEPTYpWlRPWO6Evyt4zoqUST4ousF67GmiOpD7WUqcI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "poetry.masonry.api" "poetry.core.masonry.api"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
sly
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
django-query = [
|
||||
django
|
||||
];
|
||||
};
|
||||
|
||||
pythonImportsCheck = [
|
||||
"scim2_filter_parser"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
django
|
||||
pytest-runner
|
||||
unittestCheckHook
|
||||
];
|
||||
mock
|
||||
pytestCheckHook
|
||||
] ++ passthru.optional-dependencies.django-query;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A customizable parser/transpiler for SCIM2.0 filters";
|
||||
homepage = "https://github.com/15five/scim2-filter-parser";
|
||||
license = licenses.mit;
|
||||
homepage = "https://github.com/15five/scim2-filter-parser";
|
||||
changelog = "https://github.com/15five/scim2-filter-parser/blob/${version}/CHANGELOG.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ s1341 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user