diff options
Diffstat (limited to 'pkgs/development/python-modules/xlwt/default.nix')
-rw-r--r-- | pkgs/development/python-modules/xlwt/default.nix | 44 |
1 files changed, 29 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/xlwt/default.nix b/pkgs/development/python-modules/xlwt/default.nix index f1e3a2565b6d..008566a6b2dd 100644 --- a/pkgs/development/python-modules/xlwt/default.nix +++ b/pkgs/development/python-modules/xlwt/default.nix @@ -1,27 +1,41 @@ -{ buildPythonPackage -, fetchPypi -, nose -, lib +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + six, }: -buildPythonPackage rec { +buildPythonPackage { pname = "xlwt"; - version = "1.3.0"; - format = "setuptools"; + version = "1.3.0-unstable-2018-09-16"; + pyproject = true; - src = fetchPypi { - inherit pname version; - sha256 = "c59912717a9b28f1a3c2a98fd60741014b06b043936dcecbc113eaaada156c88"; + src = fetchFromGitHub { + owner = "python-excel"; + repo = "xlwt"; + # Use last commit before archival + rev = "5a222d0315b6d3ce52a3cedd7c3e41309587c107"; + hash = "sha256-YKbqdimX1q+d7A9BSwuKl3SndQ+0eocz+m6xMAZeMQQ="; }; - nativeCheckInputs = [ nose ]; - checkPhase = '' - nosetests -v - ''; + build-system = [ setuptools ]; + + dependencies = [ six ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "xlwt" ]; meta = { description = "Library to create spreadsheet files compatible with MS"; homepage = "https://github.com/python-excel/xlwt"; - license = with lib.licenses; [ bsdOriginal bsd3 lgpl21 ]; + license = with lib.licenses; [ + bsdOriginal + bsd3 + lgpl21Plus + ]; + maintainers = with lib.maintainers; [ pyrox0 ]; }; } |