at 24.11-pre 62 lines 1.4 kB view raw
1{ 2 buildPythonPackage, 3 stdenv, 4 fetchFromGitHub, 5 lib, 6 attrs, 7 distro, 8 jsonschema, 9 six, 10 zipfile2, 11 hypothesis, 12 mock, 13 packaging, 14 testfixtures, 15}: 16 17buildPythonPackage rec { 18 pname = "okonomiyaki"; 19 version = "1.4.0"; 20 format = "setuptools"; 21 22 src = fetchFromGitHub { 23 owner = "enthought"; 24 repo = pname; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-MEll1H7l41m8uz2/WK/Ilm7Dubg0uqYwe+ZgakO1aXQ="; 27 }; 28 29 propagatedBuildInputs = [ 30 distro 31 attrs 32 jsonschema 33 six 34 zipfile2 35 ]; 36 37 preCheck = 38 '' 39 substituteInPlace okonomiyaki/runtimes/tests/test_runtime.py \ 40 --replace 'runtime_info = PythonRuntime.from_running_python()' 'raise unittest.SkipTest() #' 41 '' 42 + lib.optionalString stdenv.isDarwin '' 43 substituteInPlace okonomiyaki/platforms/tests/test_pep425.py \ 44 --replace 'self.assertEqual(platform_tag, self.tag.platform)' 'raise unittest.SkipTest()' 45 ''; 46 47 checkInputs = [ 48 hypothesis 49 mock 50 packaging 51 testfixtures 52 ]; 53 54 pythonImportsCheck = [ "okonomiyaki" ]; 55 56 meta = with lib; { 57 homepage = "https://github.com/enthought/okonomiyaki"; 58 description = "An experimental library aimed at consolidating a lot of low-level code used for Enthought's eggs"; 59 maintainers = with maintainers; [ genericnerdyusername ]; 60 license = licenses.bsd3; 61 }; 62}