diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/flit-core')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/flit-core/default.nix | 21 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/flit-core/tests.nix | 22 |
2 files changed, 4 insertions, 39 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/flit-core/default.nix b/nixpkgs/pkgs/development/python-modules/flit-core/default.nix index c81a8567de2f..fc4d6479caee 100644 --- a/nixpkgs/pkgs/development/python-modules/flit-core/default.nix +++ b/nixpkgs/pkgs/development/python-modules/flit-core/default.nix @@ -1,6 +1,5 @@ { lib , buildPythonPackage -, callPackage , flit }: @@ -9,34 +8,22 @@ buildPythonPackage rec { inherit (flit) version; format = "pyproject"; - outputs = [ - "out" - "testsout" - ]; - inherit (flit) src patches; - preConfigure = '' - cd flit_core - ''; - - postInstall = '' - mkdir $testsout - cp -R ../tests $testsout/tests - ''; + sourceRoot = "source/flit_core"; - # check in passthru.tests.pytest to escape infinite recursion with setuptools-scm + # Tests are run in the "flit" package. doCheck = false; passthru.tests = { inherit flit; - pytest = callPackage ./tests.nix { }; }; meta = with lib; { description = "Distribution-building parts of Flit. See flit package for more information"; homepage = "https://github.com/pypa/flit"; + changelog = "https://github.com/pypa/flit/blob/${src.rev}/doc/history.rst"; license = licenses.bsd3; - maintainers = with maintainers; [ fridh ]; + maintainers = teams.python.members; }; } diff --git a/nixpkgs/pkgs/development/python-modules/flit-core/tests.nix b/nixpkgs/pkgs/development/python-modules/flit-core/tests.nix deleted file mode 100644 index 49d6ac89fce6..000000000000 --- a/nixpkgs/pkgs/development/python-modules/flit-core/tests.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ buildPythonPackage -, flit -, flit-core -, pytestCheckHook -, testpath -}: - -buildPythonPackage { - pname = "flit-core"; - inherit (flit-core) version; - - src = flit-core.testsout; - - dontBuild = true; - dontInstall = true; - - nativeCheckInputs = [ - flit - pytestCheckHook - testpath - ]; -} |