3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/django-sampledatahelper/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
2018-06-23 18:14:26 +02:00

31 lines
813 B
Nix

{ lib, buildPythonPackage, fetchPypi,
django, nose, pillow, sampledata, six, versiontools
}:
buildPythonPackage rec {
pname = "django-sampledatahelper";
version = "0.4.1";
meta = {
description = "Helper class for generate sample data for django apps development";
homepage = https://github.com/kaleidos/django-sampledatahelper;
license = lib.licenses.bsd3;
};
src = fetchPypi {
inherit pname version;
sha256 = "1795zg73lajcsfyd8i8cprb2v93d4csifjnld6bfnya90ncsbl4n";
};
buildInputs = [ django nose pillow sampledata six versiontools ];
propagatedBuildInputs = [ django sampledata ];
# HACK To prevent collision with pythonPackages.sampledata
preBuild = ''
rm tests/*
'';
# ERROR: test_image_from_directory (tests.tests.TestImageHelpers)
doCheck = false;
}