mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 15:04:44 +00:00
844632d2c8
https://github.com/python-poetry/poetry-core/releases/tag/1.3.0 https://github.com/python-poetry/poetry-core/releases/tag/1.3.1 https://github.com/python-poetry/poetry-core/releases/tag/1.3.2
67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, build
|
|
, git
|
|
, importlib-metadata
|
|
, pep517
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, setuptools
|
|
, tomlkit
|
|
, virtualenv
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "poetry-core";
|
|
version = "1.3.2";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-poetry";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-3Ryfq0MwrL/mKP8DmkhLOyFlulf3c73z9fFIzMuqOrg=";
|
|
};
|
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
|
importlib-metadata
|
|
];
|
|
|
|
checkInputs = [
|
|
build
|
|
git
|
|
pep517
|
|
pytest-mock
|
|
pytestCheckHook
|
|
setuptools
|
|
tomlkit
|
|
virtualenv
|
|
];
|
|
|
|
# Requires git history to work correctly
|
|
disabledTests = [
|
|
"default_with_excluded_data"
|
|
"default_src_with_excluded_data"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"poetry.core"
|
|
];
|
|
|
|
# Allow for package to use pep420's native namespaces
|
|
pythonNamespaces = [
|
|
"poetry"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Core utilities for Poetry";
|
|
homepage = "https://github.com/python-poetry/poetry-core/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jonringer ];
|
|
};
|
|
}
|