forked from mirrors/nixpkgs
Revert "mccabe: 0.4.0 -> 0.5.2"
This reverts commit 532869cee2
.
See https://github.com/NixOS/nixpkgs/pull/19132#issuecomment-250921713
This commit is contained in:
parent
624dbfa5cd
commit
25dcdc58d0
|
@ -13472,13 +13472,22 @@ in modules // {
|
|||
|
||||
|
||||
mccabe = buildPythonPackage (rec {
|
||||
name = "mccabe-0.5.2";
|
||||
name = "mccabe-0.4.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/m/mccabe/${name}.tar.gz";
|
||||
sha256 = "1zss8c5cn8wvxsbjzv70dxymybh3cjzrjl19vxfbnyvmidng0wrl";
|
||||
sha256 = "0yr08a36h8lqlif10l4xcikbbig7q8f41gqywir7rrvnv3mi4aws";
|
||||
};
|
||||
|
||||
# See https://github.com/flintwork/mccabe/issues/31
|
||||
postPatch = ''
|
||||
cp "${pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/flintwork/mccabe/"
|
||||
+ "e8aea16d28e92bd3c62601275762fc9c16808f6c/test_mccabe.py";
|
||||
sha256 = "0xhjxpnaxvbpi4myj9byrban7a5nrw931br9sgvfk42ayg4sn6lm";
|
||||
}}" test_mccabe.py
|
||||
'';
|
||||
|
||||
buildInputs = with self; [ pytestrunner pytest ];
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue