summary refs log tree commit diff
path: root/pkgs/development/python-modules/typish/default.nix
blob: 8b7fcdce39bf15088fc09373970e979aac3e342e (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
40
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "typish";
  version = "1.9.3";

  src = fetchFromGitHub {
    owner = "ramonhagenaars";
    repo = "typish";
    rev = "7875850f55e2df8a9e2426e2d484ab618e347c7f";
    sha256 = "0mc5hw92f15mwd92rb2q9isc4wi7xq76449w7ph5bskcspas0wrf";
  };

  checkInputs = [
    numpy
    pytestCheckHook
  ];

  disabledTestPaths = [
    # Requires a very old version of nptyping
    # which has a circular dependency on typish
    "tests/functions/test_instance_of.py"
  ];

  pythonImportsCheck = [
    "typish"
  ];

  meta = with lib; {
    description = "Python module for checking types of objects";
    homepage = "https://github.com/ramonhagenaars/typish";
    license = licenses.mit;
    maintainers = with maintainers; [ fmoda3 ];
  };
}