1{ lib 2, buildPythonPackage 3, fetchPypi 4, configparser 5, pytest 6, isPy3k 7}: 8 9buildPythonPackage rec { 10 pname = "entrypoints"; 11 version = "0.2.3"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "d2d587dde06f99545fb13a383d2cd336a8ff1f359c5839ce3a64c917d10c029f"; 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}