anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / related / default.nix
blobd36157d818ccc3b207712f73c5687d0516a58304
2   lib,
3   attrs,
4   buildPythonPackage,
5   fetchPypi,
6   future,
7   pytestCheckHook,
8   python-dateutil,
9   pythonOlder,
10   pyyaml,
13 buildPythonPackage rec {
14   pname = "related";
15   version = "0.7.3";
16   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchPypi {
21     inherit pname version;
22     hash = "sha256-IqmbqAW6PubN9GBXrMs5Je4u1XkgLl9camSGNrlrFJA=";
23   };
25   propagatedBuildInputs = [
26     attrs
27     future
28     python-dateutil
29     pyyaml
30   ];
32   nativeCheckInputs = [ pytestCheckHook ];
34   postPatch = ''
35     # Remove outdated setup.cfg
36     rm setup.cfg
37     substituteInPlace setup.py \
38       --replace "'pytest-runner'," ""
39   '';
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   ];
49   pythonImportsCheck = [ "related" ];
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   };