about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/flit-core/default.nix
blob: a4c6b99b07f4ea8bab9d2421be377b62f497afb5 (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
{ lib
, buildPythonPackage
, flit
, isPy3k
, toml
, pytestCheckHook
, testpath
}:

buildPythonPackage rec {
  pname = "flit-core";
  version = "3.2.0";
  format = "pyproject";

  inherit (flit) src patches;

  preConfigure = ''
    cd flit_core
  '';

  propagatedBuildInputs = [
    toml
  ];

  checkInputs = [
    pytestCheckHook
    testpath
  ];

  passthru.tests = {
    inherit flit;
  };

  meta = {
    description = "Distribution-building parts of Flit. See flit package for more information";
    homepage = "https://github.com/takluyver/flit";
    license = lib.licenses.bsd3;
    maintainers = [ lib.maintainers.fridh ];
  };
}