1{ lib
2, buildPythonPackage
3, fetchPypi
4, configparser
5, pytest
6, isPy3k
7}:
8
9buildPythonPackage rec {
10 pname = "entrypoints";
11 version = "0.3";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "c70dd71abe5a8c85e55e12c19bd91ccfeec11a6e99044204511f9ed547d48451";
16 };
17
18 checkInputs = [ pytest ];
19
20 propagatedBuildInputs = lib.optional (!isPy3k) configparser;
21
22 checkPhase = ''
23 py.test tests
24 '';
25
26 meta = {
27 description = "Discover and load entry points from installed packages";
28 homepage = "https://github.com/takluyver/entrypoints";
29 license = lib.licenses.mit;
30 };
31}