mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 17:25:11 +00:00
31 lines
609 B
Nix
31 lines
609 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, configparser
|
|
, pytest
|
|
, isPy3k
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "entrypoints";
|
|
version = "0.2.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "d2d587dde06f99545fb13a383d2cd336a8ff1f359c5839ce3a64c917d10c029f";
|
|
};
|
|
|
|
checkInputs = [ pytest];
|
|
|
|
propagatedBuildInputs = [] ++ lib.optional (!isPy3k) [ 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;
|
|
};
|
|
} |