pythonPackages.vmprof: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-29 09:27:06 -04:00
parent cac8acb654
commit 79112e8522
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 29 additions and 22 deletions

View File

@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, requests
, six
}:
buildPythonPackage rec {
version = "0.3.3";
pname = "vmprof";
src = fetchPypi {
inherit pname version;
sha256 = "991bc2f1dc824c63e9b399f9e8606deded92a52378d0e449f258807d7556b039";
};
propagatedBuildInputs = [ requests six];
# No tests included
doCheck = false;
meta = with stdenv.lib; {
description = "A vmprof client";
license = licenses.mit;
homepage = https://vmprof.readthedocs.org/;
};
}

View File

@ -4091,28 +4091,7 @@ in {
virtualenvwrapper = callPackage ../development/python-modules/virtualenvwrapper { }; virtualenvwrapper = callPackage ../development/python-modules/virtualenvwrapper { };
vmprof = buildPythonPackage rec { vmprof = callPackage ../development/python-modules/vmprof { };
version = "0.3.3";
name = "vmprof-${version}";
# Url using old scheme doesn't seem to work
src = pkgs.fetchurl {
url = "https://files.pythonhosted.org/packages/c3/f3/f039ca77e727c5c2d3e61967a2a5c9ecc0ef6ca235012fd5559febb77cd0/vmprof-0.3.3.tar.gz";
sha256 = "991bc2f1dc824c63e9b399f9e8606deded92a52378d0e449f258807d7556b039";
};
propagatedBuildInputs = with self; [ requests six];
# No tests included
doCheck = false;
meta = {
description = "A vmprof client";
license = licenses.mit;
homepage = https://vmprof.readthedocs.org/;
};
};
vultr = buildPythonPackage rec { vultr = buildPythonPackage rec {
version = "0.1.2"; version = "0.1.2";