python3Packages.poetry-core: build from source
This commit is contained in:
parent
072501ebfa
commit
20d25c3a8e
|
@ -1,22 +1,63 @@
|
||||||
{ lib
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, isPy27
|
||||||
, buildPythonPackage
|
, importlib-metadata
|
||||||
, fetchPypi
|
, intreehooks
|
||||||
|
, isort
|
||||||
|
, pathlib2
|
||||||
|
, pep517
|
||||||
|
, pytest-mock
|
||||||
|
, pytestCheckHook
|
||||||
|
, tomlkit
|
||||||
|
, typing
|
||||||
|
, virtualenv
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "poetry-core";
|
pname = "poetry-core";
|
||||||
version = "1.0.0a9";
|
version = "1.0.0a9";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "python-poetry";
|
||||||
sha256 = "f08e9829fd06609ca5615faa91739b589eb71e025a6aaf7ddffb698676eb7c8c";
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1ln47x1bc1yvhdfwfnkqx4d2j7988a59v8vmcriw14whfgzfki75";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = false; # No tests in sdist.
|
# avoid mass-rebuild of python packages
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace "^1.7.0" "^1.6.0"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
nativeBuildInputs = [
|
||||||
|
intreehooks
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
||||||
|
importlib-metadata
|
||||||
|
] ++ lib.optionals isPy27 [
|
||||||
|
pathlib2
|
||||||
|
typing
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
isort
|
||||||
|
pep517
|
||||||
|
pytest-mock
|
||||||
|
pytestCheckHook
|
||||||
|
tomlkit
|
||||||
|
virtualenv
|
||||||
|
];
|
||||||
|
|
||||||
|
# requires git history to work correctly
|
||||||
|
disabledTests = [ "default_with_excluded_data" ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "poetry.core" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "Core utilities for Poetry";
|
description = "Core utilities for Poetry";
|
||||||
homepage = "https://github.com/python-poetry/core";
|
homepage = "https://github.com/python-poetry/poetry-core/";
|
||||||
license = lib.licenses.mit;
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ jonringer ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue