1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-02 13:59:07 +03:00
nixpkgs/pkgs/development/python-modules/flit-core/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
806 B
Nix
Raw Normal View History

2020-05-09 11:34:00 +02:00
{ lib
, buildPythonPackage
, callPackage
2020-05-09 11:34:00 +02:00
, flit
}:
buildPythonPackage rec {
pname = "flit-core";
2022-03-27 20:10:09 +02:00
inherit (flit) version;
2020-05-09 11:34:00 +02:00
format = "pyproject";
outputs = [
"out"
"testsout"
];
2020-11-29 15:04:28 +01:00
inherit (flit) src patches;
preConfigure = ''
cd flit_core
'';
2020-05-09 11:34:00 +02:00
postInstall = ''
mkdir $testsout
cp -R ../tests $testsout/tests
'';
# check in passthru.tests.pytest to escape infinite recursion with setuptools-scm
doCheck = false;
2020-05-09 11:34:00 +02:00
passthru.tests = {
inherit flit;
pytest = callPackage ./tests.nix { };
2020-05-09 11:34:00 +02:00
};
meta = with lib; {
2020-05-09 11:34:00 +02:00
description = "Distribution-building parts of Flit. See flit package for more information";
2022-03-27 20:08:59 +02:00
homepage = "https://github.com/pypa/flit";
license = licenses.bsd3;
maintainers = with maintainers; [ fridh SuperSandro2000 ];
2020-05-09 11:34:00 +02:00
};
2020-06-01 10:59:41 +02:00
}