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

buildPythonPackage rec {
  pname = "flit-core";
  version = "2.3.0";
  disabled = !isPy3k;

  format = "pyproject";

  src = fetchPypi {
    inherit version;
    pname = "flit_core";
    sha256 = "a50bcd8bf5785e3a7d95434244f30ba693e794c5204ac1ee908fc07c4acdbf80";
  };

  propagatedBuildInputs = [
    pytoml
  ];

  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 ];
  };
}