pythonPackages.betamax: Move to own file

This commit is contained in:
Elis Hirwing 2018-03-31 12:07:33 +02:00 committed by Frederik Rietdijk
parent 5fe48723fa
commit 27270b2ea6
2 changed files with 23 additions and 19 deletions

View File

@ -0,0 +1,22 @@
{ stdenv, buildPythonPackage, fetchPypi, requests }:
buildPythonPackage rec {
pname = "betamax";
version = "0.8.1";
src = fetchPypi {
inherit pname version;
sha256 = "1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v";
};
propagatedBuildInputs = [ requests ];
doCheck = false;
meta = with stdenv.lib; {
homepage = https://betamax.readthedocs.org/en/latest/;
description = "A VCR imitation for requests";
license = licenses.asl20;
maintainers = with maintainers; [ pSub ];
};
}

View File

@ -959,25 +959,7 @@ in {
};
};
betamax = buildPythonPackage rec {
name = "betamax-0.8.1";
src = pkgs.fetchurl {
url = "mirror://pypi/b/betamax/${name}.tar.gz";
sha256 = "1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v";
};
propagatedBuildInputs = [ self.requests ];
doCheck = false;
meta = with stdenv.lib; {
homepage = https://betamax.readthedocs.org/en/latest/;
description = "A VCR imitation for requests";
license = licenses.asl20;
maintainers = with maintainers; [ pSub ];
};
};
betamax = callPackage ../development/python-modules/betamax {};
betamax-matchers = callPackage ../development/python-modules/betamax-matchers { };