Skip to content

Commit

Permalink
pythonPackages.pytest-django: unpin setuptools_scm
Browse files Browse the repository at this point in the history
- unpin setuptools_scm
- move to file in folder following guidelines
- use PyPI/upstream name
  • Loading branch information
FRidh committed Mar 16, 2017
1 parent 9bd988e commit 645c218
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
@@ -1,5 +1,6 @@
{ stdenv, buildPythonPackage, fetchurl
, pytest, django, setuptools_scm
, fetchpatch
}:
buildPythonPackage rec {
name = "pytest-django-${version}";
Expand All @@ -13,6 +14,17 @@ buildPythonPackage rec {
buildInputs = [ pytest setuptools_scm ];
propagatedBuildInputs = [ django ];

patches = [
# Unpin setuptools-scm
(fetchpatch {
url = "https://github.com/pytest-dev/pytest-django/commit/25cbc3b395dcdeb92bdc9414e296680c2b9d602e.patch";
sha256 = "1mx06y4kz2zs41mb2h9bh5p4jc6s6hfsq6fghhsks5b7qak05xjp";
})
];

# Complicated. Requires Django setup.
doCheck = false;

meta = with stdenv.lib; {
description = "py.test plugin for testing of Django applications";
homepage = http://pytest-django.readthedocs.org/en/latest/;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/python-packages.nix
Expand Up @@ -5158,7 +5158,7 @@ in {
};
};

pytestdjango = callPackage ../development/python-modules/pytestdjango.nix { };
pytest-django = callPackage ../development/python-modules/pytest-django { };

pytest-fixture-config = buildPythonPackage rec {
name = "${pname}-${version}";
Expand Down

1 comment on commit 645c218

@periklis
Copy link
Contributor

@periklis periklis commented on 645c218 Mar 16, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks eval on master for django_guardian. Please do a search/replace when renaming packages.

Please sign in to comment.