nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7 setuptools-scm,
8}:
9
10buildPythonPackage rec {
11 pname = "find-libpython";
12 version = "0.5.1";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "ktbarrett";
17 repo = "find_libpython";
18 tag = "v${version}";
19 hash = "sha256-g2Gl+usa1mJMvvumynnoy/ckFTSrFA57o339t2j9lWQ=";
20 };
21
22 build-system = [
23 setuptools
24 setuptools-scm
25 ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "find_libpython" ];
30
31 meta = {
32 description = "Finds the libpython associated with your environment, wherever it may be hiding";
33 changelog = "https://github.com/ktbarrett/find_libpython/releases/tag/${src.tag}";
34 homepage = "https://github.com/ktbarrett/find_libpython";
35 license = lib.licenses.mit;
36 maintainers = with lib.maintainers; [ jleightcap ];
37 mainProgram = "find_libpython";
38 };
39}