diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-02-08 02:36:33 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-02-08 02:36:33 +0100 |
commit | 601c31d4f2574a1ad3c8d638526fb2906d89e37a (patch) | |
tree | 59c8ae55f4b7943cff0a246df243530acfaff58f /pkgs/development/python-modules/django-cors-headers | |
parent | 18ff61e50a5516bef8daa768b77f4f2993687861 (diff) |
python3Packages.django-cors-headers: enable tests
Diffstat (limited to 'pkgs/development/python-modules/django-cors-headers')
-rw-r--r-- | pkgs/development/python-modules/django-cors-headers/default.nix | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/django-cors-headers/default.nix b/pkgs/development/python-modules/django-cors-headers/default.nix index ae13d50f252ac..1bc9153d00631 100644 --- a/pkgs/development/python-modules/django-cors-headers/default.nix +++ b/pkgs/development/python-modules/django-cors-headers/default.nix @@ -1,22 +1,30 @@ -{ lib, - fetchPypi, - django, - buildPythonPackage +{ lib +, fetchFromGitHub +, buildPythonPackage +, django +, pytest-django +, pytestCheckHook }: buildPythonPackage rec { pname = "django-cors-headers"; version = "3.7.0"; - src = fetchPypi { - inherit pname version; - sha256 = "96069c4aaacace786a34ee7894ff680780ec2644e4268b31181044410fecd12e"; + src = fetchFromGitHub { + owner = "adamchainz"; + repo = "django-cors-headers"; + rev = version; + sha256 = "1wc8cs1gpg9v98bq5qwnd4pcv043za50wd63gwkm86lbvjxyxynz"; }; - propagatedBuildInputs = [ django ]; + propagatedBuildInputs = [ + django + ]; - # pypi release does not include tests - doCheck = false; + checkInputs = [ + pytest-django + pytestCheckHook + ]; meta = with lib; { description = "Django app for handling server Cross-Origin Resource Sharing (CORS) headers"; |