diff --git a/pkgs/development/python-modules/seedir/default.nix b/pkgs/development/python-modules/seedir/default.nix new file mode 100644 index 000000000000..8aadab61cac8 --- /dev/null +++ b/pkgs/development/python-modules/seedir/default.nix @@ -0,0 +1,46 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, natsort +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "seedir"; + version = "0.4.2"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "earnestt1234"; + repo = pname; + rev = "refs/tags/v${version}"; + sha256 = "sha256-ioez5lBNyiBK3poL2Px3KtCQeM+Gh2d4iD3SoAIHFAk="; + }; + + propagatedBuildInputs = [ + natsort + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "seedir" + ]; + + pytestFlagsArray = [ + "tests/tests.py" + ]; + + meta = with lib; { + description = "Module for for creating, editing, and reading folder tree diagrams"; + homepage = "https://github.com/earnestt1234/seedir"; + changelog = "https://github.com/earnestt1234/seedir/releases/tag/v${version}"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/development/python-modules/sybil/default.nix b/pkgs/development/python-modules/sybil/default.nix index 2667f0af5464..d1bb2994f779 100644 --- a/pkgs/development/python-modules/sybil/default.nix +++ b/pkgs/development/python-modules/sybil/default.nix @@ -1,31 +1,26 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub , pytestCheckHook , pythonOlder }: buildPythonPackage rec { pname = "sybil"; - version = "3.0.1"; + version = "4.0.0"; format = "setuptools"; disabled = pythonOlder "3.6"; - src = fetchPypi { - inherit pname version; - hash = "sha256-bwLcIgSvflohIDeSTZdPcngfbcGP08RMx85GOhIPUw0="; + src = fetchFromGitHub { + owner = "simplistix"; + repo = pname; + rev = "refs/tags/${version}"; + hash = "sha256-9fXvQfVS3IVdOV4hbA0bEYFJU7uK0WpqJKMNBltqFTI="; }; - checkInputs = [ - pytestCheckHook - ]; - - disabledTests = [ - # Sensitive to output of other commands - "test_namespace" - "test_unittest" - ]; + # Circular dependency with testfixtures + doCheck = false; pythonImportsCheck = [ "sybil" @@ -34,6 +29,7 @@ buildPythonPackage rec { meta = with lib; { description = "Automated testing for the examples in your documentation"; homepage = "https://github.com/cjw296/sybil"; + changelog = "https://github.com/simplistix/sybil/blob/${version}/CHANGELOG.rst"; license = licenses.mit; maintainers = with maintainers; [ ]; }; diff --git a/pkgs/development/python-modules/testfixtures/default.nix b/pkgs/development/python-modules/testfixtures/default.nix index 9f0de060d7d4..19f9ef7eadcb 100644 --- a/pkgs/development/python-modules/testfixtures/default.nix +++ b/pkgs/development/python-modules/testfixtures/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "testfixtures"; - version = "7.0.0"; + version = "7.0.4"; format = "setuptools"; # DO NOT CONTACT upstream. # https://github.com/simplistix/ is only concerned with internal CI process. @@ -25,7 +25,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - hash = "sha256-jsrFowh5NFFkBZTZykLOibmHcR4eTJMShVMh7CH2zLQ="; + hash = "sha256-xSaqiXjBAC8FnxUsSt43WMShJBjfqyspdUrmIwyvPQQ="; }; checkInputs = [ @@ -52,6 +52,7 @@ buildPythonPackage rec { meta = with lib; { description = "Collection of helpers and mock objects for unit tests and doc tests"; homepage = "https://github.com/Simplistix/testfixtures"; + changelog = "https://github.com/simplistix/testfixtures/blob/${version}/CHANGELOG.rst"; license = licenses.mit; maintainers = with maintainers; [ siriobalmelli ]; }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 39a9447ef058..0753f6dd88e6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10185,6 +10185,8 @@ self: super: with self; { securetar = callPackage ../development/python-modules/securetar { }; + seedir = callPackage ../development/python-modules/seedir { }; + seekpath = callPackage ../development/python-modules/seekpath { }; segments = callPackage ../development/python-modules/segments { };