about summary refs log tree commit diff
path: root/pkgs/development/python-modules/find-libpython/default.nix
blob: 21ce69e071d7b315614de937bb4e25150eaca0ab (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
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "find-libpython";
  version = "0.3.0";
  format = "setuptools";

  src = fetchPypi {
    inherit version;
    pname = "find_libpython";
    sha256 = "sha256-bn/l2a9/rW3AZstVFaDpyQpx8f6yuy+OTNu0+DJ26eU=";
  };

  disabled = pythonOlder "3.7";

  pythonImportsCheck = [ "find_libpython" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = with lib; {
    description = "Finds the libpython associated with your environment, wherever it may be hiding";
    changelog = "https://github.com/ktbarrett/find_libpython/releases/tag/${version}";
    homepage = "https://github.com/ktbarrett/find_libpython";
    license = licenses.mit;
    maintainers = with maintainers; [ jleightcap ];
  };
}