-
Notifications
You must be signed in to change notification settings - Fork 979
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pedro Pombeiro
committed
Feb 28, 2019
1 parent
ab2d89a
commit cb62ee1
Showing
5 changed files
with
87 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Taken from https://github.com/NixOS/nixpkgs/commit/7c860b5fd8e7e721c99ceaf4bcf61b70cfe22768, as the pinned version was broken (conan<-python<-pylint) | ||
|
||
{ lib, python3, git }: | ||
|
||
let newPython = python3.override { | ||
packageOverrides = self: super: { | ||
distro = super.distro.overridePythonAttrs (oldAttrs: rec { | ||
version = "1.1.0"; | ||
src = oldAttrs.src.override { | ||
inherit version; | ||
sha256 = "1vn1db2akw98ybnpns92qi11v94hydwp130s8753k6ikby95883j"; | ||
}; | ||
}); | ||
node-semver = super.node-semver.overridePythonAttrs (oldAttrs: rec { | ||
version = "0.6.1"; | ||
src = oldAttrs.src.override { | ||
inherit version; | ||
sha256 = "1dv6mjsm67l1razcgmq66riqmsb36wns17mnipqr610v0z0zf5j0"; | ||
}; | ||
}); | ||
future = super.future.overridePythonAttrs (oldAttrs: rec { | ||
version = "0.16.0"; | ||
src = oldAttrs.src.override { | ||
inherit version; | ||
sha256 = "1nzy1k4m9966sikp0qka7lirh8sqrsyainyf8rk97db7nwdfv773"; | ||
}; | ||
}); | ||
tqdm = super.tqdm.overridePythonAttrs (oldAttrs: rec { | ||
version = "4.28.1"; | ||
src = oldAttrs.src.override { | ||
inherit version; | ||
sha256 = "1fyybgbmlr8ms32j7h76hz5g9xc6nf0644mwhc40a0s5k14makav"; | ||
}; | ||
}); | ||
}; | ||
}; | ||
|
||
in newPython.pkgs.buildPythonApplication rec { | ||
version = "1.12.0"; | ||
pname = "conan"; | ||
|
||
src = newPython.pkgs.fetchPypi { | ||
inherit pname version; | ||
sha256 = "0hgy3wfy96likdchz42h9mawfjw4dxx7k2iinrrlhph7128kji1j"; | ||
}; | ||
checkInputs = [ | ||
git | ||
] ++ (with newPython.pkgs; [ | ||
codecov | ||
mock | ||
node-semver | ||
nose | ||
parameterized | ||
webtest | ||
]); | ||
|
||
propagatedBuildInputs = with newPython.pkgs; [ | ||
colorama deprecation distro fasteners bottle | ||
future node-semver patch pygments pluginbase | ||
pyjwt pylint pyyaml requests six tqdm | ||
]; | ||
|
||
checkPhase = '' | ||
export HOME="$TMP/conan-home" | ||
mkdir -p "$HOME" | ||
''; | ||
|
||
meta = with lib; { | ||
homepage = https://conan.io; | ||
description = "Decentralized and portable C/C++ package manager"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ HaoZeke ]; | ||
platforms = platforms.linux; | ||
}; | ||
} |