Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 35 lines 702 B view raw
1{ buildPythonPackage 2, fetchPypi 3, numpy 4, scikitimage 5, stdenv 6, opencv3 7}: 8 9buildPythonPackage rec { 10 pname = "imagecorruptions"; 11 version = "1.1.0"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "14j8x6axnyrn6y7bsjyh4yqm7af68mqpxy7gg2xh3d577d852zgm"; 16 }; 17 18 postPatch = '' 19 substituteInPlace setup.py \ 20 --replace "'opencv-python >= 3.4.5'," "" 21 ''; 22 23 propagatedBuildInputs = [ 24 numpy 25 scikitimage 26 opencv3 27 ]; 28 29 meta = with stdenv.lib; { 30 homepage = "https://github.com/bethgelab/imagecorruptions"; 31 description = "This package provides a set of image corruptions"; 32 license = licenses.asl20; 33 maintainers = with maintainers; [ rakesh4g ]; 34 }; 35}