diff --git a/pkgs/development/python-modules/pycallgraph/default.nix b/pkgs/development/python-modules/pycallgraph/default.nix new file mode 100644 index 000000000000..9a6a3f4be2e9 --- /dev/null +++ b/pkgs/development/python-modules/pycallgraph/default.nix @@ -0,0 +1,28 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pytest +}: + +buildPythonPackage rec { + pname = "pycallgraph"; + version = "1.0.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "0w8yr43scnckqcv5nbyd2dq4kpv74ai856lsdsf8iniik07jn9mi"; + }; + + buildInputs = [ pytest ]; + + # Tests do not work due to this bug: https://github.com/gak/pycallgraph/issues/118 + doCheck = false; + + meta = with stdenv.lib; { + homepage = http://pycallgraph.slowchop.com; + description = "Call graph visualizations for Python applications"; + maintainers = with maintainers; [ auntie ]; + license = licenses.gpl2; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 47d68ba13e8c..e2ff8f0df377 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2062,28 +2062,7 @@ in { pybtex-docutils = callPackage ../development/python-modules/pybtex-docutils {}; - pycallgraph = buildPythonPackage rec { - name = "pycallgraph-${version}"; - version = "1.0.1"; - - src = pkgs.fetchurl { - url = mirror://pypi/p/pycallgraph/pycallgraph-1.0.1.tar.gz; - sha256 = "0w8yr43scnckqcv5nbyd2dq4kpv74ai856lsdsf8iniik07jn9mi"; - }; - - buildInputs = with self; [ pytest ]; - - # Tests do not work due to this bug: https://github.com/gak/pycallgraph/issues/118 - doCheck = false; - - meta = { - homepage = http://pycallgraph.slowchop.com; - description = "Call graph visualizations for Python applications"; - maintainers = with maintainers; [ auntie ]; - license = licenses.gpl2; - platforms = platforms.all; - }; - }; + pycallgraph = callPackage ../development/python-modules/pycallgraph { }; pycassa = callPackage ../development/python-modules/pycassa { };