pythonPackages.casbin: init at 0.8.3
This commit is contained in:
parent
62e680cdcf
commit
9b372dcf2a
40
pkgs/development/python-modules/casbin/default.nix
Normal file
40
pkgs/development/python-modules/casbin/default.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, simpleeval
|
||||
, isPy27
|
||||
, coveralls
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "casbin";
|
||||
version = "0.8.3";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = "pycasbin";
|
||||
rev = "v${version}";
|
||||
sha256 = "1s89m62933m4wprsknwhabgg7irykrcimv80hh2zkyyslz5vbq71";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
simpleeval
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
coveralls
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
coverage run -m unittest discover -s tests -t tests
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "An authorization library that supports access control models like ACL, RBAC, ABAC in Python";
|
||||
homepage = https://github.com/casbin/pycasbin;
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
@ -1908,6 +1908,8 @@ in {
|
||||
|
||||
cartopy = callPackage ../development/python-modules/cartopy {};
|
||||
|
||||
casbin = callPackage ../development/python-modules/casbin { };
|
||||
|
||||
case = callPackage ../development/python-modules/case {};
|
||||
|
||||
cbor = callPackage ../development/python-modules/cbor {};
|
||||
|
Loading…
Reference in New Issue
Block a user