depot/third_party/nixpkgs/pkgs/development/python-modules/casbin/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

49 lines
955 B
Nix

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