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