diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/find-libpython/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/find-libpython/default.nix | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/find-libpython/default.nix b/nixpkgs/pkgs/development/python-modules/find-libpython/default.nix index 21ce69e071d7..7a26be2b38ed 100644 --- a/nixpkgs/pkgs/development/python-modules/find-libpython/default.nix +++ b/nixpkgs/pkgs/development/python-modules/find-libpython/default.nix @@ -1,30 +1,42 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub , pytestCheckHook , pythonOlder +, setuptools +, setuptools-scm }: buildPythonPackage rec { pname = "find-libpython"; - version = "0.3.0"; - format = "setuptools"; + version = "0.3.1"; + pyproject = true; - src = fetchPypi { - inherit version; - pname = "find_libpython"; - sha256 = "sha256-bn/l2a9/rW3AZstVFaDpyQpx8f6yuy+OTNu0+DJ26eU="; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "ktbarrett"; + repo = "find_libpython"; + rev = "refs/tags/v${version}"; + hash = "sha256-DBBAgfYQ4UBFn5Osb1kpVBWbrZVBAvcVGQ/J4rJO/rQ="; }; - disabled = pythonOlder "3.7"; + nativeBuildInputs = [ + setuptools + setuptools-scm + ]; - pythonImportsCheck = [ "find_libpython" ]; + nativeCheckInputs = [ + pytestCheckHook + ]; - nativeCheckInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ + "find_libpython" + ]; 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}"; + 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 ]; |