
Diff: https://github.com/casbin/pycasbin/compare/refs/tags/v1.45.0...refs/tags/v2.0.0 Changelog: https://github.com/casbin/pycasbin/blob/v2.0.0/CHANGELOG.md
45 lines
905 B
Nix
45 lines
905 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
simpleeval,
|
|
wcmatch,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycasbin";
|
|
version = "2.0.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "casbin";
|
|
repo = "pycasbin";
|
|
tag = "v${version}";
|
|
hash = "sha256-LbJhpDTNPELsjgTmuYyYrOKzgMe81np49KB2PY1wxZs=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
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/${src.tag}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|