nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 72 lines 1.5 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 fetchpatch, 6 deprecation, 7 hatchling, 8 packaging, 9 pytestCheckHook, 10 pytest-timeout, 11 setuptools, 12 tomlkit, 13}: 14 15buildPythonPackage rec { 16 pname = "jupyter-packaging"; 17 version = "0.12.3"; 18 pyproject = true; 19 20 src = fetchPypi { 21 pname = "jupyter_packaging"; 22 inherit version; 23 hash = "sha256-nZsrY7l//WeovFORwypCG8QVsmSjLJnk2NjdMdqunPQ="; 24 }; 25 26 patches = [ 27 (fetchpatch { 28 name = "setuptools-68-test-compatibility.patch"; 29 url = "https://github.com/jupyter/jupyter-packaging/commit/e963fb27aa3b58cd70c5ca61ebe68c222d803b7e.patch"; 30 hash = "sha256-NlO07wBCutAJ1DgoT+rQFkuC9Y+DyF1YFlTwWpwsJzo="; 31 }) 32 ]; 33 34 nativeBuildInputs = [ hatchling ]; 35 36 propagatedBuildInputs = [ 37 deprecation 38 packaging 39 setuptools 40 tomlkit 41 ]; 42 43 nativeCheckInputs = [ 44 pytestCheckHook 45 pytest-timeout 46 ]; 47 48 pytestFlags = [ "-Wignore::DeprecationWarning" ]; 49 50 preCheck = '' 51 export HOME=$(mktemp -d) 52 ''; 53 54 disabledTests = [ 55 # disable tests depending on network connection 56 "test_develop" 57 "test_install" 58 # Avoid unmaintained "mocker" fixture library, and calls to dependent "build" module 59 "test_build" 60 "test_npm_build" 61 "test_create_cmdclass" 62 "test_ensure_with_skip_npm" 63 ]; 64 65 pythonImportsCheck = [ "jupyter_packaging" ]; 66 67 meta = { 68 description = "Jupyter Packaging Utilities"; 69 homepage = "https://github.com/jupyter/jupyter-packaging"; 70 license = lib.licenses.bsd3; 71 }; 72}