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