Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
939 B
Nix
42 lines
939 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 ];
|
|
|
|
# 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 = [ ];
|
|
};
|
|
}
|