mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
Merge pull request #111646 from SuperSandro2000/fix-collection7
This commit is contained in:
@@ -143,11 +143,9 @@ buildPythonPackage rec {
|
||||
--replace "flask-appbuilder>=1.12.5, <2.0.0" "flask-appbuilder" \
|
||||
--replace "flask-admin==1.5.3" "flask-admin" \
|
||||
--replace "flask-login>=0.3, <0.5" "flask-login" \
|
||||
--replace "pendulum==1.4.4" "pendulum" \
|
||||
--replace "cached_property~=1.5" "cached_property" \
|
||||
--replace "dill>=0.2.2, <0.3" "dill" \
|
||||
--replace "configparser>=3.5.0, <3.6.0" "configparser" \
|
||||
--replace "jinja2>=2.10.1, <2.11.0" "jinja2" \
|
||||
--replace "colorlog==4.0.2" "colorlog" \
|
||||
--replace "funcsigs==1.0.0" "funcsigs" \
|
||||
--replace "flask-swagger==0.2.13" "flask-swagger" \
|
||||
|
||||
@@ -11,11 +11,6 @@ buildPythonPackage rec {
|
||||
sha256 = "1e912937650c1dbb830079dd9c039950762a230223a567740fbf1b23f1090367";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "iso8601<=0.1.11" iso8601
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
chameleon
|
||||
colander
|
||||
|
||||
@@ -25,6 +25,9 @@ buildPythonPackage rec {
|
||||
++ lib.optional stdenv.isLinux pyinotify
|
||||
++ lib.optional stdenv.isDarwin macfsevents;
|
||||
|
||||
# hangs on darwin
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
checkInputs = [ mock pytestCheckHook ];
|
||||
|
||||
disabledTests = [
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
, importlib-metadata
|
||||
, matplotlib
|
||||
, numpy
|
||||
, exdown
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
@@ -32,12 +33,9 @@ buildPythonPackage rec {
|
||||
mkdir -p $HOME/.matplotlib
|
||||
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
|
||||
'';
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
checkInputs = [ exdown pytestCheckHook ];
|
||||
pythonImportsCheck = [ "dufte" ];
|
||||
pytestFlagsArray = [
|
||||
# we don't have the "exdown" package (yet)
|
||||
"--ignore=test/test_readme.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Clean matplotlib plots";
|
||||
|
||||
24
pkgs/development/python-modules/exdown/default.nix
Normal file
24
pkgs/development/python-modules/exdown/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
||||
, importlib-metadata }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "exdown";
|
||||
version = "0.7.1";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-vnSso3vmPIjX7JX+NwoxguwqwPHocJACeh5H0ClPcUI=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
||||
|
||||
pythonImportsCheck = [ "exdown" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Extract code blocks from markdown";
|
||||
homepage = "https://github.com/nschloe/exdown";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
@@ -15,6 +15,11 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [ GitPython ];
|
||||
|
||||
# no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "gitsweep" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A command-line tool that helps you clean up Git branches";
|
||||
homepage = "https://github.com/arc90/git-sweep";
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
, tabulate
|
||||
, nbformat
|
||||
, jsonschema
|
||||
, pytest
|
||||
, pytestCheckHook
|
||||
, colorama
|
||||
, pygments
|
||||
, tornado
|
||||
@@ -40,7 +40,16 @@ buildPythonPackage rec {
|
||||
jsonschema
|
||||
mock
|
||||
tabulate
|
||||
pytest
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
"test_apply_filter_no_repo"
|
||||
"test_diff_api_checkpoint"
|
||||
"test_filter_cmd_invalid_filter"
|
||||
"test_inline_merge"
|
||||
"test_interrogate_filter_no_repo"
|
||||
"test_merge_input_strategy_inline_source_conflict"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ setuptools_scm ];
|
||||
|
||||
@@ -22,6 +22,7 @@ buildPythonPackage rec {
|
||||
description = "Python bindings to Slurm";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ bhipple ];
|
||||
platforms = platforms.linux;
|
||||
broken = true; # still needs slurm-19.05, but nixpkgs has slurm-20+ now
|
||||
};
|
||||
}
|
||||
|
||||
@@ -7,8 +7,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ maven ] ++ lib.optional stdenv.isLinux autoPatchelfHook;
|
||||
|
||||
doBuild = false;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, lib, fetchFromGitHub, buildPythonPackage, isPy3k, regex }:
|
||||
{ lib, stdenv, fetchFromGitHub, buildPythonPackage, isPy3k, regex }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "SoMaJo";
|
||||
@@ -14,6 +14,9 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [ regex ];
|
||||
|
||||
# loops forever
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tokenizer and sentence splitter for German and English web texts";
|
||||
homepage = "https://github.com/tsproisl/SoMaJo";
|
||||
|
||||
Reference in New Issue
Block a user