Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / related / default.nix
blob8c131e146944e66de14b57865162512e9b45d4f9
1 { lib
2 , attrs
3 , buildPythonPackage
4 , fetchPypi
5 , future
6 , pytestCheckHook
7 , python-dateutil
8 , pythonOlder
9 , pyyaml
12 buildPythonPackage rec {
13   pname = "related";
14   version = "0.7.3";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchPypi {
20     inherit pname version;
21     hash = "sha256-IqmbqAW6PubN9GBXrMs5Je4u1XkgLl9camSGNrlrFJA=";
22   };
24   propagatedBuildInputs = [
25     attrs
26     future
27     python-dateutil
28     pyyaml
29   ];
31   nativeCheckInputs = [
32     pytestCheckHook
33   ];
35   postPatch = ''
36     # Remove outdated setup.cfg
37     rm setup.cfg
38     substituteInPlace setup.py \
39       --replace "'pytest-runner'," ""
40   '';
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   ];
50   pythonImportsCheck = [
51     "related"
52   ];
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   };