mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #185713 from fabaff/casbin-bump
python310Packages.casbin: 1.16.9 -> 1.17.0
This commit is contained in:
commit
d53e9e7a60
1 changed files with 6 additions and 10 deletions
|
@ -1,15 +1,15 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, simpleeval
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, coveralls
|
||||
, simpleeval
|
||||
, wcmatch
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "casbin";
|
||||
version = "1.16.9";
|
||||
version = "1.17.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
@ -18,7 +18,7 @@ buildPythonPackage rec {
|
|||
owner = pname;
|
||||
repo = "pycasbin";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "sha256-1xxjFNkCb50ndmXuRjt7svPOvSyzZbw+J49Zpyy1FUc=";
|
||||
hash = "sha256-fBMhrA4zL4XPjQ63AGc5jf585ZpHTBumPievDNfCw7o=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -27,19 +27,15 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
checkInputs = [
|
||||
coveralls
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
coverage run -m unittest discover -s tests -t tests
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"casbin"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An authorization library that supports access control models like ACL, RBAC, ABAC in Python";
|
||||
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 ];
|
||||
|
|
Loading…
Reference in a new issue