1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
django,
|
|
djangorestframework,
|
|
fetchFromGitHub,
|
|
pytest-django,
|
|
pytest-xdist,
|
|
pytestCheckHook,
|
|
pyjwt,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-rest-registration";
|
|
version = "0.9.0";
|
|
pyproject = true;
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "apragacz";
|
|
repo = "django-rest-registration";
|
|
tag = "v${version}";
|
|
hash = "sha256-EaS1qN7GpfPPeSLwwQdVWSRO2dv0DG5LD7vnXckz4Bg=";
|
|
};
|
|
|
|
dependencies = [
|
|
django
|
|
djangorestframework
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-django
|
|
pytest-xdist
|
|
pyjwt
|
|
];
|
|
|
|
pythonImportsCheck = [ "rest_registration" ];
|
|
|
|
disabledTests = [
|
|
# Failed: DID NOT RAISE <class 'rest_registration.utils.html.MLStripperParseFailed'>
|
|
"test_convert_html_to_text_fails"
|
|
];
|
|
|
|
meta = {
|
|
description = "User-related REST API based on the awesome Django REST Framework";
|
|
homepage = "https://github.com/apragacz/django-rest-registration/";
|
|
changelog = "https://github.com/apragacz/django-rest-registration/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ sephi ];
|
|
};
|
|
}
|