depot/third_party/nixpkgs/pkgs/development/python-modules/six/default.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

30 lines
557 B
Nix

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