blob: fc8da7447ffba4be2db745453598373a9afd8c47 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pythonOlder
, build
, git
, pytest-mock
, pytestCheckHook
, setuptools
, tomli-w
, virtualenv
}:
buildPythonPackage rec {
pname = "poetry-core";
version = "1.7.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "python-poetry";
repo = pname;
rev = version;
hash = "sha256-OfY2zc+5CgOrgbiPVnvMdT4h1S7Aek8S7iThl6azmsk=";
};
nativeCheckInputs = [
build
git
pytest-mock
pytestCheckHook
setuptools
tomli-w
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"
];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-int-conversion";
meta = with lib; {
changelog = "https://github.com/python-poetry/poetry-core/blob/${src.rev}/CHANGELOG.md";
description = "Core utilities for Poetry";
homepage = "https://github.com/python-poetry/poetry-core/";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};
}
|