diff --git a/pkgs/development/python-modules/seventeentrack/default.nix b/pkgs/development/python-modules/seventeentrack/default.nix new file mode 100644 index 000000000000..f9786ec2a4bd --- /dev/null +++ b/pkgs/development/python-modules/seventeentrack/default.nix @@ -0,0 +1,61 @@ +{ lib +, aiohttp +, aresponses +, async-timeout +, attrs +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, pytest-asyncio +, pytestCheckHook +, pythonOlder +, pytz +}: + +buildPythonPackage rec { + pname = "seventeentrack"; + version = "2022.04.4"; + format = "pyproject"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "McSwindler"; + repo = pname; + rev = version; + hash = "sha256-r77UA9NDQ1EQIVXZK6povmp/jIIX/f+NbpH0qmYiHZs="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + aiohttp + async-timeout + attrs + pytz + ]; + + checkInputs = [ + aresponses + pytest-asyncio + pytestCheckHook + ]; + + disabledTestPaths = [ + # Ignore the examples directory as the files are prefixed with test_ + "examples/" + ]; + + pythonImportsCheck = [ + "seventeentrack" + ]; + + meta = with lib; { + description = "Python library to track package info from 17track.com"; + homepage = "https://github.com/McSwindler/seventeentrack"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 489a250ba5e4..e5c3be55bef3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9266,6 +9266,8 @@ in { setuptoolsTrial = callPackage ../development/python-modules/setuptoolstrial { }; + seventeentrack = callPackage ../development/python-modules/seventeentrack { }; + sexpdata = callPackage ../development/python-modules/sexpdata { }; sfepy = callPackage ../development/python-modules/sfepy { };