git.iko.soy/typeable/nixpkgs
on master help sign in
python39Packages.pydyf: remove extra pytest, remove linting only tests, format to standard pythonPackages layout
commit412899feae7c1fd8d54857207fc59e0e10589295 authorSandro Jäckel <sandro.jaeckel@gmail.com> dateThu 18 Nov 2021, 18:49 (5 years ago) parent8ea3df5
1 file changed+18−26
pkgs/development/python-modules/pydyf/default.nix+18−26
pkgs/development/python-modules/pydyf/default.nix+18−26
@@ -1,15 +1,11 @@
1−{ lib,
2− buildPythonPackage,
3− fetchPypi,
4− isPy3k,
5− pytestCheckHook,
6− coverage,
7− ghostscript,
8− pillow,
9− pytest,
10− pytest-cov,
11− pytest-flake8,
12− pytest-isort
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, isPy3k
5+, pytestCheckHook
6+, coverage
7+, ghostscript
8+, pillow
139}:
1410
1511buildPythonPackage rec {
@@ -17,28 +13,24 @@ buildPythonPackage rec {
1713 version = "0.1.2";
1814 disabled = !isPy3k;
1915
20− pytestFlagsArray = [
21− # setup.py is auto-generated and doesn't pass the flake8 check
22− "--ignore=setup.py"
23− ];
16+ src = fetchPypi {
17+ inherit version;
18+ pname = "pydyf";
19+ sha256 = "sha256-Hi9d5IF09QXeAlp9HnzwG73ZQiyoq5RReCvwDuF4YCw=";
20+ };
21+
22+ postPatch = ''
23+ substituteInPlace pyproject.toml \
24+ --replace "--isort --flake8 --cov --no-cov-on-fail" ""
25+ '';
2426
2527 checkInputs = [
2628 pytestCheckHook
2729 coverage
2830 ghostscript
2931 pillow
30− pytest
31− pytest-cov
32− pytest-flake8
33− pytest-isort
3432 ];
3533
36− src = fetchPypi {
37− inherit version;
38− pname = "pydyf";
39− sha256 = "sha256-Hi9d5IF09QXeAlp9HnzwG73ZQiyoq5RReCvwDuF4YCw=";
40− };
41−
4234 meta = with lib; {
4335 homepage = "https://doc.courtbouillon.org/pydyf/stable/";
4436 description = "Low-level PDF generator written in Python and based on PDF specification 1.7";