From 0fd1905e8cb1fcebe77e2f2bb08555210549f260 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 29 Oct 2018 11:17:00 -0400 Subject: [PATCH] pythonPackages.tracing: refactor move to python-modules --- .../python-modules/tracing/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 21 +------------- 2 files changed, 29 insertions(+), 20 deletions(-) create mode 100644 pkgs/development/python-modules/tracing/default.nix diff --git a/pkgs/development/python-modules/tracing/default.nix b/pkgs/development/python-modules/tracing/default.nix new file mode 100644 index 000000000000..da9683e187ed --- /dev/null +++ b/pkgs/development/python-modules/tracing/default.nix @@ -0,0 +1,28 @@ +{ stdenv +, buildPythonPackage +, fetchurl +, sphinx +}: + +buildPythonPackage rec { + pname = "tracing"; + version = "0.8"; + + src = fetchurl { + url = "http://code.liw.fi/debian/pool/main/p/python-tracing/python-tracing_${version}.orig.tar.gz"; + sha256 = "1l4ybj5rvrrcxf8csyq7qx52izybd502pmx70zxp46gxqm60d2l0"; + }; + + buildInputs = [ sphinx ]; + + # error: invalid command 'test' + doCheck = false; + + meta = with stdenv.lib; { + homepage = http://liw.fi/tracing/; + description = "Python debug logging helper"; + license = licenses.gpl30; + maintainers = with maintainers; [ rickynils ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e0cdb78238fa..a4ae0feba5b9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4258,26 +4258,7 @@ in { titlecase = callPackage ../development/python-modules/titlecase { }; - tracing = buildPythonPackage rec { - name = "tracing-${version}"; - version = "0.8"; - - src = pkgs.fetchurl rec { - url = "http://code.liw.fi/debian/pool/main/p/python-tracing/python-tracing_${version}.orig.tar.gz"; - sha256 = "1l4ybj5rvrrcxf8csyq7qx52izybd502pmx70zxp46gxqm60d2l0"; - }; - - buildInputs = with self; [ sphinx ]; - - # error: invalid command 'test' - doCheck = false; - - meta = { - homepage = http://liw.fi/tracing/; - description = "Python debug logging helper"; - maintainers = with maintainers; [ rickynils ]; - }; - }; + tracing = callPackage ../development/python-modules/tracing { }; translationstring = buildPythonPackage rec { name = "translationstring-1.3";