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

30 lines
554 B
Nix
Raw Normal View History

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