2017-09-05 11:16:41 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, configparser
|
|
|
|
, pytest
|
2018-04-05 19:42:25 +02:00
|
|
|
, isPy3k
|
2017-09-05 11:16:41 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "entrypoints";
|
2019-02-14 08:37:15 +01:00
|
|
|
version = "0.3";
|
2017-09-05 11:16:41 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 08:37:15 +01:00
|
|
|
sha256 = "c70dd71abe5a8c85e55e12c19bd91ccfeec11a6e99044204511f9ed547d48451";
|
2017-09-05 11:16:41 +02:00
|
|
|
};
|
|
|
|
|
2018-04-25 01:23:44 +02:00
|
|
|
checkInputs = [ pytest ];
|
2017-09-05 11:16:41 +02:00
|
|
|
|
2018-04-25 01:23:44 +02:00
|
|
|
propagatedBuildInputs = lib.optional (!isPy3k) configparser;
|
2017-09-05 11:16:41 +02:00
|
|
|
|
2019-01-07 20:09:20 +01:00
|
|
|
checkPhase = ''
|
|
|
|
py.test tests
|
2017-09-05 11:16:41 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Discover and load entry points from installed packages";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/takluyver/entrypoints";
|
2017-09-05 11:16:41 +02:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
2018-04-25 01:23:44 +02:00
|
|
|
}
|