Skip to content

Commit

Permalink
python312Packages.papis: 0.13 -> 0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
octvs committed Nov 13, 2024
1 parent 317781e commit 0e64844
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions pkgs/development/python-modules/papis/default.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
{
lib,
stdenv,
arxiv2bib,
arxiv,
beautifulsoup4,
bibtexparser,
buildPythonPackage,
chardet,
click,
colorama,
configparser,
docutils,
dominate,
fetchFromGitHub,
filetype,
git,
habanero,
hatchling,
isbnlib,
lxml,
platformdirs,
prompt-toolkit,
pygments,
pyparsing,
Expand All @@ -24,28 +28,32 @@
pythonOlder,
pyyaml,
requests,
sphinx,
sphinx-click,
stevedore,
tqdm,
typing-extensions,
whoosh,
}:

buildPythonPackage rec {
pname = "papis";
version = "0.13";
format = "setuptools";
version = "0.14";
pyproject = true;

disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "papis";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-iRrf37hq+9D01JRaQIqg7yTPbLX6I0ZGnzG3r1DX464=";
hash = "sha256-UpZoMYk4URN8tSFGIynVzWMk+9S0izROAgbx6uI2cN8=";
};

build-system = [ hatchling ];

propagatedBuildInputs = [
arxiv2bib
docutils
arxiv
platformdirs
beautifulsoup4
bibtexparser
chardet
Expand All @@ -65,17 +73,21 @@ buildPythonPackage rec {
pyyaml
requests
stevedore
tqdm
typing-extensions
whoosh
sphinx
sphinx-click
];

postPatch = ''
substituteInPlace setup.cfg \
substituteInPlace pyproject.toml \
--replace "--cov=papis" ""
'';

nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytestCheckHook
git
];

preCheck = ''
export HOME=$(mktemp -d);
Expand Down

0 comments on commit 0e64844

Please sign in to comment.