Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
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