depot/third_party/nixpkgs/pkgs/development/python-modules/casbin/default.nix

44 lines
818 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, simpleeval
, wcmatch
}:
buildPythonPackage rec {
pname = "casbin";
version = "1.17.4";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = pname;
repo = "pycasbin";
rev = "refs/tags/v${version}";
hash = "sha256-idcqNWocy4dDh7zv3gz81wHp+9WX5PptXGHI9uqM69M=";
};
propagatedBuildInputs = [
simpleeval
wcmatch
];
checkInputs = [
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";
license = licenses.asl20;
maintainers = with maintainers; [ costrouc ];
};
}