about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/find-libpython/default.nix
blob: 33dcb7e812a6d43cbe76ed7e9fcfafcd7f621bc0 (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
41
42
43
44
45
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
, setuptools-scm
}:

buildPythonPackage rec {
  pname = "find-libpython";
  version = "0.3.1";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "ktbarrett";
    repo = "find_libpython";
    rev = "refs/tags/v${version}";
    hash = "sha256-DBBAgfYQ4UBFn5Osb1kpVBWbrZVBAvcVGQ/J4rJO/rQ=";
  };

  nativeBuildInputs = [
    setuptools
    setuptools-scm
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "find_libpython"
  ];

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