fe2d872327
Diff: https://github.com/casbin/pycasbin/compare/refs/tags/v1.32.0...v1.33.0 Changelog: https://github.com/casbin/pycasbin/blob/v1.33.0/CHANGELOG.md
49 lines
955 B
Nix
49 lines
955 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
, simpleeval
|
|
, wcmatch
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "casbin";
|
|
version = "1.33.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "casbin";
|
|
repo = "pycasbin";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-/0yYU33zMtC6Pjm4yyQNavMDoI+5uC2zZci5IL/EY7Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
simpleeval
|
|
wcmatch
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"casbin"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Authorization library that supports access control models like ACL, RBAC and ABAC";
|
|
homepage = "https://github.com/casbin/pycasbin";
|
|
changelog = "https://github.com/casbin/pycasbin/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|