nixpkgs/pkgs/development/python-modules/six/default.nix

31 lines
557 B
Nix
Raw Normal View History

2017-11-05 12:37:45 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, pytest
}:
buildPythonPackage rec {
pname = "six";
2020-06-06 06:47:31 +00:00
version = "1.15.0";
2017-11-05 12:37:45 +00:00
src = fetchPypi {
inherit pname version;
2020-06-06 06:47:31 +00:00
sha256 = "30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259";
2017-11-05 12:37:45 +00:00
};
checkInputs = [ pytest ];
checkPhase = ''
py.test test_six.py
'';
# To prevent infinite recursion with pytest
doCheck = false;
2017-11-05 12:37:45 +00:00
meta = {
description = "A Python 2 and 3 compatibility library";
homepage = "https://pypi.python.org/pypi/six/";
2017-11-05 12:37:45 +00:00
license = lib.licenses.mit;
};
}