17 # Flit is actually an application to build universal wheels.
18 # It requires Python 3 and should eventually be moved outside of
19 # python-packages.nix. When it will be used to build wheels,
20 # care should be taken that there is no mingling of PYTHONPATH.
22 buildPythonPackage rec {
28 src = fetchFromGitHub {
32 sha256 = "zk6mozS3Q9U43PQe/DxgwwsBRJ6Qwb+rSUVGXHijD+g=";
39 # Use toml instead of pytoml
40 # Resolves infinite recursion since packaging started using flit.
43 url = "https://github.com/takluyver/flit/commit/b81b1da55ef0f2768413669725d2874fcb0c29fb.patch";
44 sha256 = "11oNaYsm00/j2046V9C0idpSeG7TpY3JtLuxX3ZL/OI=";
48 propagatedBuildInputs = [
53 ] ++ lib.optionals (pythonOlder "3.6") [
57 checkInputs = [ pytest testpath responses ];
59 # Disable test that needs some ini file.
60 # Disable test that wants hg
62 HOME=$(mktemp -d) pytest -k "not test_invalid_classifier and not test_build_sdist"
66 description = "A simple packaging tool for simple packages";
67 homepage = "https://github.com/takluyver/flit";
68 license = licenses.bsd3;
69 maintainers = [ maintainers.fridh ];