Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / poetry-core / default.nix
blobc7010ef0432cf2504deb3b706219d4dcc21c327e
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pythonOlder
6 , build
7 , git
8 , pytest-mock
9 , pytestCheckHook
10 , setuptools
11 , tomli-w
12 , virtualenv
15 buildPythonPackage rec {
16   pname = "poetry-core";
17   version = "1.9.0";
18   format = "pyproject";
20   disabled = pythonOlder "3.8";
22   src = fetchFromGitHub {
23     owner = "python-poetry";
24     repo = pname;
25     rev = version;
26     hash = "sha256-vvwKbzGlvv2LTbXfJxQVM3nUXFGntgJxsku6cbRxCzw=";
27   };
29   nativeCheckInputs = [
30     build
31     git
32     pytest-mock
33     pytestCheckHook
34     setuptools
35     tomli-w
36     virtualenv
37   ];
39   # Requires git history to work correctly
40   disabledTests = [
41     "default_with_excluded_data"
42     "default_src_with_excluded_data"
43   ];
45   pythonImportsCheck = [
46     "poetry.core"
47   ];
49   # Allow for package to use pep420's native namespaces
50   pythonNamespaces = [
51     "poetry"
52   ];
54   env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-int-conversion";
56   meta = with lib; {
57     changelog = "https://github.com/python-poetry/poetry-core/blob/${src.rev}/CHANGELOG.md";
58     description = "Core utilities for Poetry";
59     homepage = "https://github.com/python-poetry/poetry-core/";
60     license = licenses.mit;
61     maintainers = with maintainers; [ jonringer ];
62   };