1{ lib
2, buildPythonPackage
3, callPackage
4, flit
5, toml
6}:
7
8buildPythonPackage rec {
9 pname = "flit-core";
10 version = "3.2.0";
11 format = "pyproject";
12
13 outputs = [
14 "out"
15 "testsout"
16 ];
17
18 inherit (flit) src patches;
19
20 preConfigure = ''
21 cd flit_core
22 '';
23
24 propagatedBuildInputs = [
25 toml
26 ];
27
28 postInstall = ''
29 mkdir $testsout
30 cp -R ../tests $testsout/tests
31 '';
32
33 # check in passthru.tests.pytest to escape infinite recursion with setuptools-scm
34 doCheck = false;
35
36 passthru.tests = {
37 inherit flit;
38 pytest = callPackage ./tests.nix { };
39 };
40
41 meta = with lib; {
42 description = "Distribution-building parts of Flit. See flit package for more information";
43 homepage = "https://github.com/takluyver/flit";
44 license = licenses.bsd3;
45 maintainers = with maintainers; [ fridh SuperSandro2000 ];
46 };
47}