1 { buildPythonPackage, fetchFromGitHub, isPy27, lib, mock, numpy, pytestCheckHook
4 buildPythonPackage rec {
9 src = fetchFromGitHub {
10 owner = "datapythonista";
12 rev = "${pname}-${version}";
13 sha256 = "17r37pbxiv5dw857bmg990x836gq6sgww069w3q5jjg9m3xdm7dh";
16 propagatedBuildInputs = [ numpy ] ++ lib.optional isPy27 mock;
18 nativeCheckInputs = [ pytestCheckHook ];
20 dontUseSetuptoolsCheck = true;
22 # disable tests which fail due to socket related errors
24 "test_test_images_has_right_size"
25 "test_test_labels_has_right_size"
26 "test_train_images_has_right_size"
27 "test_train_labels_has_right_size"
31 description = "Python utilities to download and parse the MNIST dataset";
32 homepage = "https://github.com/datapythonista/mnist";
33 license = licenses.bsd3;
34 maintainers = with maintainers; [ dmrauh ];