at master 1.3 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 versioneer, 9 10 # dependencies 11 multipledispatch, 12 numpy, 13 python-dateutil, 14 15 # tests 16 pytestCheckHook, 17}: 18 19buildPythonPackage rec { 20 pname = "datashape"; 21 version = "0.5.4"; 22 pyproject = true; 23 24 src = fetchFromGitHub { 25 owner = "blaze"; 26 repo = "datashape"; 27 tag = version; 28 hash = "sha256-jkGdzDSh2JHQ/Fvft/QPmpmWUSiFWT5OLX0HKaeQFGY="; 29 }; 30 31 postPatch = '' 32 # Remove vendorized versioneer.py 33 rm versioneer.py 34 ''; 35 36 build-system = [ 37 setuptools 38 versioneer 39 ]; 40 41 dependencies = [ 42 multipledispatch 43 numpy 44 python-dateutil 45 ]; 46 47 nativeCheckInputs = [ 48 pytestCheckHook 49 ]; 50 51 disabledTests = [ 52 # AttributeError: `np.unicode_` was removed in the NumPy 2.0 release. Use `np.str_` instead. 53 "test_from_numpy_dtype_fails" 54 "test_string_from_CType_classmethod" 55 ]; 56 57 disabledTestPaths = [ 58 # numpy incompatibilities 59 # https://github.com/blaze/datashape/issues/232 60 "datashape/tests/test_str.py" 61 "datashape/tests/test_user.py" 62 ]; 63 meta = { 64 description = "Data description language"; 65 homepage = "https://github.com/ContinuumIO/datashape"; 66 changelog = "https://github.com/blaze/datashape/releases/tag/${version}"; 67 license = lib.licenses.bsd2; 68 }; 69}