mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, isPy27
|
|
, importlib-metadata
|
|
, intreehooks
|
|
, isort
|
|
, pathlib2
|
|
, pep517
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, tomlkit
|
|
, typing ? null
|
|
, virtualenv
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "poetry-core";
|
|
version = "1.1.0a3";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-poetry";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-GlRTtnxnc4slS4q1I7UTHUYGUJkzU9ew2NpJwSX7KYA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
intreehooks
|
|
];
|
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
|
importlib-metadata
|
|
] ++ lib.optionals isPy27 [
|
|
pathlib2
|
|
typing
|
|
];
|
|
|
|
checkInputs = [
|
|
pep517
|
|
pytest-mock
|
|
pytestCheckHook
|
|
tomlkit
|
|
virtualenv
|
|
];
|
|
|
|
# requires git history to work correctly
|
|
disabledTests = [ "default_with_excluded_data" "default_src_with_excluded_data" ];
|
|
|
|
pythonImportsCheck = [ "poetry.core" ];
|
|
|
|
meta = with lib; {
|
|
description = "Core utilities for Poetry";
|
|
homepage = "https://github.com/python-poetry/poetry-core/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jonringer ];
|
|
};
|
|
}
|