depot/third_party/nixpkgs/pkgs/development/python-modules/casbin/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

44 lines
915 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
simpleeval,
wcmatch,
}:
buildPythonPackage rec {
pname = "casbin";
version = "1.36.3";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "casbin";
repo = "pycasbin";
rev = "refs/tags/v${version}";
hash = "sha256-JTAd7Nkreyfczomki05WHuuJCFWspvG8i6DAWaQI6fs=";
};
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 = [ ];
};
}