nixpkgs/pkgs/development/python-modules/mnist/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

38 lines
984 B
Nix

{ buildPythonPackage, fetchFromGitHub, isPy27, lib, mock, numpy, pytestCheckHook
}:
buildPythonPackage rec {
pname = "mnist";
version = "0.2.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "datapythonista";
repo = "mnist";
rev = "${pname}-${version}";
sha256 = "17r37pbxiv5dw857bmg990x836gq6sgww069w3q5jjg9m3xdm7dh";
};
propagatedBuildInputs = [ numpy ] ++ lib.optional isPy27 mock;
nativeCheckInputs = [ pytestCheckHook ];
dontUseSetuptoolsCheck = true;
# disable tests which fail due to socket related errors
disabledTests = [
"test_test_images_has_right_size"
"test_test_labels_has_right_size"
"test_train_images_has_right_size"
"test_train_labels_has_right_size"
];
meta = with lib; {
description = "Python utilities to download and parse the MNIST dataset";
homepage = "https://github.com/datapythonista/mnist";
license = licenses.bsd3;
maintainers = with maintainers; [ dmrauh ];
};
}