summary refs log tree commit diff
path: root/pkgs/development/python-modules/sampledata/default.nix
blob: fcc27e3c4dbe300b55529ff6ba32e5ab336e498b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, buildPythonPackage, fetchPypi,
  nose, pytz, six, versiontools
}:

buildPythonPackage rec {
  pname = "sampledata";
  version = "0.3.7";

  meta = {
    description = "Sample Data generator for Python ";
    homepage = https://github.com/jespino/sampledata;
    license = lib.licenses.bsd3;
  };

  src = fetchPypi {
    inherit pname version;
    sha256 = "1kx2j49lag30d32zhzsr50gl5b949wa4lcdap2filg0d07picsdh";
  };

  buildInputs = [ nose versiontools ];
  propagatedBuildInputs = [ pytz six ];

# ERROR: test_image_path_from_directory (tests.tests.TestImageHelpers)
# ERROR: test_image_stream (tests.tests.TestImageHelpers)
  doCheck = false;

  checkPhase = ''
    nosetests -e "TestImageHelpers"
  '';
}