1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, docutils
5, requests
6, pytestCheckHook
7, testpath
8, responses
9, flit-core
10, tomli
11, tomli-w
12}:
13
14# Flit is actually an application to build universal wheels.
15# It requires Python 3 and should eventually be moved outside of
16# python-packages.nix. When it will be used to build wheels,
17# care should be taken that there is no mingling of PYTHONPATH.
18
19buildPythonPackage rec {
20 pname = "flit";
21 version = "3.7.1";
22 format = "pyproject";
23
24 src = fetchFromGitHub {
25 owner = "takluyver";
26 repo = "flit";
27 rev = version;
28 sha256 = "sha256-zKgaeK3fskz2TuHvIWlxBrdZIWfIJHhaqopZ3+V36wY=";
29 };
30
31 nativeBuildInputs = [
32 flit-core
33 ];
34
35 propagatedBuildInputs = [
36 docutils
37 requests
38 flit-core
39 tomli
40 tomli-w
41 ];
42
43 checkInputs = [ pytestCheckHook testpath responses ];
44
45 disabledTests = [
46 # needs some ini file.
47 "test_invalid_classifier"
48 ];
49
50 meta = with lib; {
51 description = "A simple packaging tool for simple packages";
52 homepage = "https://github.com/pypa/flit";
53 license = licenses.bsd3;
54 maintainers = with maintainers; [ fridh SuperSandro2000 ];
55 };
56}