Merge pull request #28884 from FRidh/python-fixes

Python: several fixes
This commit is contained in:
Frederik Rietdijk
2017-09-05 11:16:41 +02:00
committed by Frederik Rietdijk
parent 036bafe0b9
commit 67651d80bc
71 changed files with 1365 additions and 761 deletions

View File

@@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchPypi
, configparser
, pytest
}:
buildPythonPackage rec {
pname = "entrypoints";
version = "0.2.3";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "d2d587dde06f99545fb13a383d2cd336a8ff1f359c5839ce3a64c917d10c029f";
};
checkInputs = [ pytest];
propagatedBuildInputs = [ configparser ];
checkPhase = ''
py.test tests
'';
meta = {
description = "Discover and load entry points from installed packages";
homepage = https://github.com/takluyver/entrypoints;
license = lib.licenses.mit;
};
}