python.pkgs.flit: 0.10.0 -> 0.11.4

This commit is contained in:
Frederik Rietdijk 2017-09-02 13:55:46 +02:00
parent 146fdc88cb
commit 2c762cd68e
2 changed files with 51 additions and 22 deletions

View File

@ -0,0 +1,50 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchurl
, isPy3k
, docutils
, requests
, requests_download
, zipfile36
, pythonOlder
, pytest
, testpath
, responses
}:
# Flit is actually an application to build universal wheels.
# It requires Python 3 and should eventually be moved outside of
# python-packages.nix. When it will be used to build wheels,
# care should be taken that there is no mingling of PYTHONPATH.
buildPythonPackage rec {
pname = "flit";
version = "0.11.4";
name = "${pname}-${version}";
# format = "wheel";
src = fetchPypi {
inherit pname version;
# url = https://files.pythonhosted.org/packages/24/98/50a090112a04d9e29155c31a222637668b0a4dd778fefcd3132adc50e877/flit-0.10-py3-none-any.whl;
sha256 = "8ba7603cc3bf4149d81811d40fe331abc45ff37a207c63f5f712a0fdb69297bb";
};
disabled = !isPy3k;
propagatedBuildInputs = [ docutils requests requests_download ] ++ lib.optional (pythonOlder "3.6") zipfile36;
checkInputs = [ pytest testpath responses ];
# Disable test that needs some ini file.
checkPhase = ''
py.test -k "not test_invalid_classifier"
'';
meta = {
description = "A simple packaging tool for simple packages";
homepage = https://github.com/takluyver/flit;
license = lib.licenses.bsd3;
maintainer = lib.maintainers.fridh;
};
}

View File

@ -5766,28 +5766,7 @@ in {
propagatedBuildInputs = with self; [ rpkg offtrac urlgrabber fedora_cert ];
});
flit = buildPythonPackage rec {
pname = "flit";
version = "0.10";
name = "${pname}-${version}";
format = "wheel";
src = pkgs.fetchurl {
url = https://files.pythonhosted.org/packages/24/98/50a090112a04d9e29155c31a222637668b0a4dd778fefcd3132adc50e877/flit-0.10-py3-none-any.whl;
sha256 = "4566b2e1807abeb1fd7bfaa9b444447556f1720518edfb134b56a6a1272b0428";
};
disabled = !isPy3k;
propagatedBuildInputs = with self; [ docutils requests requests_download zipfile36];
meta = {
description = "A simple packaging tool for simple packages";
homepage = https://github.com/takluyver/flit;
license = licenses.bsd3;
maintainer = maintainers.fridh;
};
};
flit = callPackage ../development/python-modules/flit { };
Flootty = buildPythonPackage rec {
name = "Flootty-3.2.0";