From 761042b10eb139e6402a0c4096aff3d946130fba Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Wed, 16 Jan 2019 14:40:44 -0800 Subject: [PATCH 1/2] python37Packages.jaraco_logging: 1.5.2 -> 2.0 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-jaraco.logging/versions --- pkgs/development/python-modules/jaraco_logging/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/jaraco_logging/default.nix b/pkgs/development/python-modules/jaraco_logging/default.nix index 2aeb0dc3fa40..b7bcf0015f70 100644 --- a/pkgs/development/python-modules/jaraco_logging/default.nix +++ b/pkgs/development/python-modules/jaraco_logging/default.nix @@ -3,10 +3,10 @@ buildPythonPackage rec { pname = "jaraco.logging"; - version = "1.5.2"; + version = "2.0"; src = fetchPypi { inherit pname version; - sha256 = "199pgwx9ziab3gxg6p0c24z8dp3bjpsvvshnmlph9zjsssq0xc93"; + sha256 = "1lb846j7qs1hgqwkyifv51nhl3f8jimbc4lk8yn9nkaynw0vyzcg"; }; doCheck = false; buildInputs = [ setuptools_scm ]; From 6be3079b47501322a76f2ea16b8ab83c4e992f9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 18 Jan 2019 12:28:26 +0100 Subject: [PATCH 2/2] python.pkgs.jaraco_logging: add meta and run tests --- .../python-modules/jaraco_logging/default.nix | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/jaraco_logging/default.nix b/pkgs/development/python-modules/jaraco_logging/default.nix index b7bcf0015f70..68fba6bfb5fb 100644 --- a/pkgs/development/python-modules/jaraco_logging/default.nix +++ b/pkgs/development/python-modules/jaraco_logging/default.nix @@ -1,14 +1,26 @@ -{ buildPythonPackage, fetchPypi, setuptools_scm -, tempora, six }: +{ lib, buildPythonPackage, fetchPypi, setuptools_scm +, tempora, six, pytest, pytest-flake8 }: buildPythonPackage rec { pname = "jaraco.logging"; version = "2.0"; + src = fetchPypi { inherit pname version; sha256 = "1lb846j7qs1hgqwkyifv51nhl3f8jimbc4lk8yn9nkaynw0vyzcg"; }; - doCheck = false; + buildInputs = [ setuptools_scm ]; propagatedBuildInputs = [ tempora six ]; + checkInputs = [ pytest pytest-flake8 ]; + + checkPhase = '' + PYTHONPATH=".:$PYTHONPATH" pytest + ''; + + meta = with lib; { + description = "Support for Python logging facility"; + homepage = https://github.com/jaraco/jaraco.logging; + license = licenses.mit; + }; }