Skip to content

Instantly share code, notes, and snippets.

@Synthetica9
Last active May 19, 2019 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Synthetica9/e0ac0f2477ab96c8e13f7448979adce7 to your computer and use it in GitHub Desktop.
Save Synthetica9/e0ac0f2477ab96c8e13f7448979adce7 to your computer and use it in GitHub Desktop.
commit f1f1476d457e232faa35670a1950b7963737042d
Author: Patrick Hilhorst <git@hilhorst.be>
Date: Sun May 19 12:50:21 2019 +0200
Remove version checks
diff --git a/setup.py b/setup.py
index 7bdf25f..ea31a0b 100644
--- a/setup.py
+++ b/setup.py
@@ -12,9 +12,9 @@ with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
- 'click==6.7',
- 'networkx==2.1',
- 'tsplib95==0.3.2',
+ 'click',
+ 'networkx',
+ 'tsplib95',
]
setup_requirements = ['pytest-runner', ]
let
commit = "bc9df0f66110039e495b6debe3a6cda4a1bb0fed";
repo = builtins.fetchTarball "https://github.com/nixos/nixpkgs/archive/${commit}.tar.gz";
pkgs = import repo {};
python = pkgs.python37;
tsplib95 = python.pkgs.buildPythonPackage rec {
pname = "tsplib95";
version = "0.3.3";
src = python.pkgs.fetchPypi {
inherit pname version;
sha256 = "0akz4ccxlzfg2mdlznl09c93j6xpxndb4dv2bz8g7dwn0m6pp9x0";
};
patches = [
./tsplib95-no-version-check.patch]
;
buildInputs = with python.pkgs; [pytest pytestrunner];
propagatedBuildInputs = with python.pkgs; [ networkx click ];
};
acopy = python.pkgs.buildPythonPackage rec {
pname = "acopy";
version = "0.6.3";
src = python.pkgs.fetchPypi {
inherit pname version;
sha256 = "0pbmzf11i2zh30h2fnn8bh5nh8yx9nqsbm9i2dxrr4vr02sr4cgz";
};
doCheck = false;
patches = [
./acopy-no-version-checks.patch
# ./0003-no-relative-imports.patch
];
propagatedBuildInputs = with python.pkgs; [ networkx click tsplib95 ];
buildInputs = with python.pkgs; [pytest pytestrunner];
};
in pkgs.mkShell {
buildInputs = [ (python.withPackages (p: with p; [ networkx acopy marisa-trie ])) ];
}
commit 9024e76f963529459b661177f80679815da33bfb
Author: Patrick Hilhorst <git@hilhorst.be>
Date: Sun May 19 12:58:00 2019 +0200
Remove version checks
diff --git a/setup.py b/setup.py
index 3a99bca..96c86c6 100644
--- a/setup.py
+++ b/setup.py
@@ -12,8 +12,8 @@ with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
- 'Click>=6.0',
- 'networkx==2.1',
+ 'Click',
+ 'networkx',
]
setup_requirements = ['pytest-runner', ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment