nixpkgs/pkgs/tools/text/tesh/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
623 B
Nix
Raw Normal View History

{ python3Packages, fetchFromGitHub }:
let
version = "0.3.0";
in python3Packages.buildPythonPackage rec {
pname = "tesh";
inherit version;
format = "pyproject";
src = fetchFromGitHub {
owner = "OceanSprint";
repo = "tesh";
rev = version;
sha256 = "sha256-/CSYz2YXbjKZszb1HMOCS+srVJ+TcFSeLeuz9VvtlI4=";
};
prePatch = ''
substituteInPlace pyproject.toml \
--replace "poetry.masonry" "poetry.core.masonry"
'';
checkInputs = [ python3Packages.pytest ];
nativeBuildInputs = [ python3Packages.poetry-core ];
propagatedBuildInputs = with python3Packages; [ click pexpect ];
}