2022-09-12 02:37:03 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, build
|
2021-10-07 05:41:13 +01:00
|
|
|
, git
|
2020-08-11 20:00:24 +01:00
|
|
|
, importlib-metadata
|
|
|
|
, pep517
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
2022-09-16 09:54:20 +01:00
|
|
|
, setuptools
|
2020-08-11 20:00:24 +01:00
|
|
|
, tomlkit
|
|
|
|
, virtualenv
|
2020-08-11 19:41:35 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "poetry-core";
|
2022-10-14 16:23:16 +01:00
|
|
|
version = "1.3.2";
|
2020-08-11 20:00:24 +01:00
|
|
|
format = "pyproject";
|
2022-09-25 08:46:37 +01:00
|
|
|
|
2022-09-12 02:37:03 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-08-11 19:41:35 +01:00
|
|
|
|
2020-08-11 20:00:24 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-poetry";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-10-14 16:23:16 +01:00
|
|
|
hash = "sha256-3Ryfq0MwrL/mKP8DmkhLOyFlulf3c73z9fFIzMuqOrg=";
|
2020-08-11 19:41:35 +01:00
|
|
|
};
|
|
|
|
|
2020-08-11 20:00:24 +01:00
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-09-12 02:37:03 +01:00
|
|
|
build
|
2021-10-07 05:41:13 +01:00
|
|
|
git
|
2020-08-11 20:00:24 +01:00
|
|
|
pep517
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
2022-09-16 09:54:20 +01:00
|
|
|
setuptools
|
2020-08-11 20:00:24 +01:00
|
|
|
tomlkit
|
|
|
|
virtualenv
|
|
|
|
];
|
|
|
|
|
2022-09-25 08:46:37 +01:00
|
|
|
# Requires git history to work correctly
|
|
|
|
disabledTests = [
|
|
|
|
"default_with_excluded_data"
|
|
|
|
"default_src_with_excluded_data"
|
|
|
|
];
|
2020-08-11 20:00:24 +01:00
|
|
|
|
2022-09-25 08:46:37 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"poetry.core"
|
|
|
|
];
|
2020-08-11 20:00:24 +01:00
|
|
|
|
2022-09-25 08:46:37 +01:00
|
|
|
# Allow for package to use pep420's native namespaces
|
|
|
|
pythonNamespaces = [
|
|
|
|
"poetry"
|
|
|
|
];
|
2021-08-30 02:42:12 +01:00
|
|
|
|
2020-08-11 20:00:24 +01:00
|
|
|
meta = with lib; {
|
2020-08-11 19:41:35 +01:00
|
|
|
description = "Core utilities for Poetry";
|
2020-08-11 20:00:24 +01:00
|
|
|
homepage = "https://github.com/python-poetry/poetry-core/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
2020-08-11 19:41:35 +01:00
|
|
|
};
|
2020-08-11 20:00:24 +01:00
|
|
|
}
|