2017-09-05 09:16:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, configparser
|
|
|
|
, pytest
|
2018-04-05 17:42:25 +00:00
|
|
|
, isPy3k
|
2017-09-05 09:16:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "entrypoints";
|
|
|
|
version = "0.2.3";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "d2d587dde06f99545fb13a383d2cd336a8ff1f359c5839ce3a64c917d10c029f";
|
|
|
|
};
|
|
|
|
|
2018-04-24 23:23:44 +00:00
|
|
|
checkInputs = [ pytest ];
|
2017-09-05 09:16:41 +00:00
|
|
|
|
2018-04-24 23:23:44 +00:00
|
|
|
propagatedBuildInputs = lib.optional (!isPy3k) configparser;
|
2017-09-05 09:16:41 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Discover and load entry points from installed packages";
|
|
|
|
homepage = https://github.com/takluyver/entrypoints;
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
2018-04-24 23:23:44 +00:00
|
|
|
}
|