1{ lib 2, attrs 3, buildPythonPackage 4, fetchPypi 5, future 6, pytestCheckHook 7, python-dateutil 8, pythonOlder 9, pyyaml 10}: 11 12buildPythonPackage rec { 13 pname = "related"; 14 version = "0.7.3"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-IqmbqAW6PubN9GBXrMs5Je4u1XkgLl9camSGNrlrFJA="; 22 }; 23 24 propagatedBuildInputs = [ 25 attrs 26 future 27 python-dateutil 28 pyyaml 29 ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 ]; 34 35 postPatch = '' 36 # Remove outdated setup.cfg 37 rm setup.cfg 38 substituteInPlace setup.py \ 39 --replace "'pytest-runner'," "" 40 ''; 41 42 disabledTests = [ 43 # Source tarball doesn't contains all needed files 44 "test_compose_from_yml" 45 "test_yaml_roundtrip_with_empty_values" 46 "test_compose_from_yml" 47 "test_store_data_from_json" 48 ]; 49 50 pythonImportsCheck = [ 51 "related" 52 ]; 53 54 meta = with lib; { 55 description = "Nested Object Models in Python"; 56 homepage = "https://github.com/genomoncology/related"; 57 license = licenses.mit; 58 maintainers = with maintainers; [ fab ]; 59 }; 60}