Merge pull request #162193 from fabaff/fix-portpicker

python3Packages.portpicker: fix build
This commit is contained in:
Fabian Affolter 2022-02-28 14:42:25 +01:00 committed by GitHub
commit cac893eaed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,8 @@
{ buildPythonPackage
, lib
{ lib
, buildPythonPackage
, fetchPypi
, psutil
, pythonOlder
}:
buildPythonPackage rec {
@ -8,15 +10,25 @@ buildPythonPackage rec {
version = "1.5.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "e13b148008adeb2793cf8b55bcd20fdcec4f763f2d3bf3c45f5e5e5d1df7d228";
hash = "sha256-4TsUgAit6yeTz4tVvNIP3OxPdj8tO/PEX15eXR330ig=";
};
meta = {
description = "A library to choose unique available network ports.";
propagatedBuildInputs = [
psutil
];
pythonImportsCheck = [
"portpicker"
];
meta = with lib; {
description = "Library to choose unique available network ports";
homepage = "https://github.com/google/python_portpicker";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ danharaj ];
license = licenses.asl20;
maintainers = with maintainers; [ danharaj ];
};
}