depot/third_party/nixpkgs/pkgs/development/python-modules/casbin/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

44 lines
933 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
simpleeval,
wcmatch,
}:
buildPythonPackage rec {
pname = "casbin";
version = "1.36.2";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "casbin";
repo = "pycasbin";
rev = "refs/tags/v${version}";
hash = "sha256-RQYMQ1Zt+MJ3PyVGSTGo/Qi95M+NVGn7oC2gqXJdlEU=";
};
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/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}