2019-10-07 21:37:17 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, requests
|
|
|
|
, py
|
2022-11-27 19:20:28 -08:00
|
|
|
, pytestCheckHook
|
2020-06-11 11:49:12 +02:00
|
|
|
, lazy
|
2019-10-07 21:37:17 +02:00
|
|
|
}:
|
2017-10-04 14:38:44 +02:00
|
|
|
|
2018-06-23 15:27:58 +02:00
|
|
|
buildPythonPackage rec {
|
2017-10-04 14:38:44 +02:00
|
|
|
pname = "devpi-common";
|
2023-01-29 22:47:06 +00:00
|
|
|
version = "3.7.2";
|
2017-10-04 14:38:44 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 01:48:06 +01:00
|
|
|
hash = "sha256-kHiYknmteenBgce63EpzhGBEUYcQHrDLreZ1k01eRkQ=";
|
2017-10-04 14:38:44 +02:00
|
|
|
};
|
|
|
|
|
2022-11-27 19:20:28 -08:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tox.ini \
|
|
|
|
--replace "--flake8" ""
|
|
|
|
'';
|
|
|
|
|
2020-06-11 11:49:12 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
py
|
|
|
|
lazy
|
|
|
|
];
|
2017-10-04 14:38:44 +02:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-30 17:24:26 +01:00
|
|
|
py
|
2022-11-27 19:20:28 -08:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2017-10-04 14:38:44 +02:00
|
|
|
|
2018-06-23 15:27:58 +02:00
|
|
|
meta = with lib; {
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/devpi/devpi";
|
2017-10-04 14:38:44 +02:00
|
|
|
description = "Utilities jointly used by devpi-server and devpi-client";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lewo makefu ];
|
2023-05-13 10:12:24 +02:00
|
|
|
# It fails to build because it depends on packaging <22 while we
|
|
|
|
# use packaging >22.
|
|
|
|
# See the following issues for details:
|
|
|
|
# - https://github.com/NixOS/nixpkgs/issues/231346
|
|
|
|
# - https://github.com/devpi/devpi/issues/939
|
|
|
|
broken = true;
|
2017-10-04 14:38:44 +02:00
|
|
|
};
|
|
|
|
}
|