1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/entrypoints/default.nix
Timo Kaufmann b8a299c910 python.pkgs.entrypoints: simplify tests
The upstream issue requiring one test to be disabled was fixed:
https://github.com/takluyver/entrypoints/issues/23
2019-02-17 14:40:49 +01:00

32 lines
599 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, configparser
, pytest
, isPy3k
}:
buildPythonPackage rec {
pname = "entrypoints";
version = "0.3";
src = fetchPypi {
inherit pname version;
sha256 = "c70dd71abe5a8c85e55e12c19bd91ccfeec11a6e99044204511f9ed547d48451";
};
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;
};
}