Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions pkgs/development/python-modules/napalm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
pythonOlder,

# build-system
Expand Down Expand Up @@ -46,6 +47,16 @@ buildPythonPackage rec {
hash = "sha256-Abw3h69qTFwOOFeAfivqAIWLozErJ1yZZfx7CbMy1AI=";
};

patches = [
(fetchpatch {
url = "https://github.com/napalm-automation/napalm/commit/7e509869f7cb56892380629d1cb5f99e3e2c6190.patch";
hash = "sha256-vJDACa5SmSJ/rcmKEow4Prqju/jYcCrzGpTdEYsAPq0=";
includes = [
"napalm/ios/ios.py"
];
})
];

nativeBuildInputs = [ setuptools ];

propagatedBuildInputs = [
Expand Down
4 changes: 3 additions & 1 deletion pkgs/development/python-modules/ntc-templates/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ buildPythonPackage rec {

build-system = [ poetry-core ];

propagatedBuildInputs = [ textfsm ];
pythonRelaxDeps = [ "textfsm" ];

dependencies = [ textfsm ];

nativeCheckInputs = [
invoke
Expand Down
22 changes: 6 additions & 16 deletions pkgs/development/python-modules/textfsm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,23 @@
lib,
buildPythonPackage,
fetchFromGitHub,
six,
future,
setuptools,
pytestCheckHook,
}:

buildPythonPackage rec {
pname = "textfsm";
version = "1.1.3";
format = "setuptools";
version = "2.1.0";
pyproject = true;

src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "v${version}";
hash = "sha256-IHgKG8v0X+LSK6purWBdwDnI/BCs5XA12ZJixuqqXWg=";
tag = "v${version}";
hash = "sha256-ygVcDdT85mRN+qYfTZqraRVyp2JlLwwujBW1e/pPJNc=";
};

# upstream forgot to update the release version
postPatch = ''
substituteInPlace textfsm/__init__.py \
--replace "1.1.2" "1.1.3"
'';

propagatedBuildInputs = [
six
future
];
build-system = [ setuptools ];

nativeCheckInputs = [ pytestCheckHook ];

Expand Down
Loading