uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
47
pkgs/development/python-modules/casbin/default.nix
Normal file
47
pkgs/development/python-modules/casbin/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, simpleeval
|
||||
, pythonOlder
|
||||
, coveralls
|
||||
, wcmatch
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "casbin";
|
||||
version = "1.16.5";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = "pycasbin";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "sha256-27j1iuqf0af4Cm3r32FJnWnjvvUcacuv2+1OL6z/mwM=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
simpleeval
|
||||
wcmatch
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
coveralls
|
||||
];
|
||||
|
||||
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";
|
||||
homepage = "https://github.com/casbin/pycasbin";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ costrouc ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue