mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Merge pull request #230594 from mweinelt/rules-3.3.0
python310Packages.rules: init at 3.3.0
This commit is contained in:
commit
4776229225
45
pkgs/development/python-modules/rules/default.nix
Normal file
45
pkgs/development/python-modules/rules/default.nix
Normal file
@ -0,0 +1,45 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# tests
|
||||
, django
|
||||
, djangorestframework
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "rules";
|
||||
version = "3.3.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dfunckt";
|
||||
repo = "django-rules";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-UFRfRwcvxEn0fD3ScJJ7f/EHd93BOpY3cEF9QDryJZY=";
|
||||
};
|
||||
|
||||
pythonImportsCheck = [
|
||||
"rules"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
django
|
||||
djangorestframework
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${python.interpreter} tests/manage.py test testsuite -v2
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Awesome Django authorization, without the database";
|
||||
homepage = "https://github.com/dfunckt/django-rules";
|
||||
changelog = "https://github.com/dfunckt/django-rules/blob/${src.rev}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
@ -10590,6 +10590,8 @@ self: super: with self; {
|
||||
|
||||
ruffus = callPackage ../development/python-modules/ruffus { };
|
||||
|
||||
rules = callPackage ../development/python-modules/rules { };
|
||||
|
||||
ruuvitag-ble = callPackage ../development/python-modules/ruuvitag-ble { };
|
||||
|
||||
ruyaml = callPackage ../development/python-modules/ruyaml { };
|
||||
|
Loading…
Reference in New Issue
Block a user