about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/dataproperty/default.nix
blob: af221199c9107806a79242ca9dda0ecf6cdc6949 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ buildPythonPackage
, fetchFromGitHub
, lib
, mbstrdecoder
, typepy
, pytestCheckHook
, termcolor
}:

buildPythonPackage rec {
  pname = "dataproperty";
  version = "0.55.0";

  src = fetchFromGitHub {
    owner = "thombashi";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-ODSrKZ8M/ni9r2gkVIKWaKkdr+3AVi4INkEKJ+cmb44=";
  };

  propagatedBuildInputs = [ mbstrdecoder typepy ];

  nativeCheckInputs = [ pytestCheckHook ];
  checkInputs = [ termcolor ];

  # Tests fail, even on non-nixos
  pytestFlagsArray = [
    "--deselect test/test_dataproperty.py::Test_DataPeroperty_len::test_normal_ascii_escape_sequence"
    "--deselect test/test_dataproperty.py::Test_DataPeroperty_is_include_ansi_escape::test_normal"
    "--deselect test/test_dataproperty.py::Test_DataPeroperty_repr::test_normal"
  ];

  meta = with lib; {
    homepage = "https://github.com/thombashi/dataproperty";
    description = "A library for extracting properties from data";
    maintainers = with maintainers; [ genericnerdyusername ];
    license = licenses.mit;
  };
}