nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 75 lines 1.6 kB view raw
1{ 2 lib, 3 stdenv, 4 attrs, 5 buildPythonPackage, 6 distro, 7 fetchFromGitHub, 8 parameterized, 9 jsonschema, 10 mock, 11 packaging, 12 pytestCheckHook, 13 setuptools, 14 testfixtures, 15 zipfile2, 16}: 17 18buildPythonPackage rec { 19 pname = "okonomiyaki"; 20 version = "3.0.0"; 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "enthought"; 25 repo = "okonomiyaki"; 26 tag = version; 27 hash = "sha256-xAF9Tdr+IM3lU+mcNcAWATJLZOVvbx0llqznqHLVqDc="; 28 }; 29 30 build-system = [ setuptools ]; 31 32 optional-dependencies = { 33 all = [ 34 attrs 35 distro 36 jsonschema 37 zipfile2 38 ]; 39 platforms = [ 40 attrs 41 distro 42 ]; 43 formats = [ 44 attrs 45 distro 46 jsonschema 47 zipfile2 48 ]; 49 }; 50 51 nativeCheckInputs = [ 52 packaging 53 parameterized 54 pytestCheckHook 55 testfixtures 56 ] 57 ++ lib.concatAttrValues optional-dependencies; 58 59 preCheck = '' 60 substituteInPlace okonomiyaki/runtimes/tests/test_runtime.py \ 61 --replace-fail 'runtime_info = PythonRuntime.from_running_python()' 'raise unittest.SkipTest() #' 62 substituteInPlace okonomiyaki/platforms/_platform.py \ 63 --replace-fail 'name.split()[0]' '(name.split() or [""])[0]' 64 ''; 65 66 pythonImportsCheck = [ "okonomiyaki" ]; 67 68 meta = { 69 description = "Experimental library aimed at consolidating a lot of low-level code used for Enthought's eggs"; 70 homepage = "https://github.com/enthought/okonomiyaki"; 71 changelog = "https://github.com/enthought/okonomiyaki/releases/tag/${src.tag}"; 72 maintainers = [ ]; 73 license = lib.licenses.bsd3; 74 }; 75}