diff --git a/pkgs/development/python-modules/ptest/default.nix b/pkgs/development/python-modules/ptest/default.nix new file mode 100644 index 000000000000..0de6f98828fe --- /dev/null +++ b/pkgs/development/python-modules/ptest/default.nix @@ -0,0 +1,23 @@ +{ stdenv +, buildPythonPackage +, fetchFromGitHub +}: + +buildPythonPackage rec { + pname = "ptest"; + version = "1.5.3"; + + src = fetchFromGitHub { + owner = "KarlGong"; + repo = pname; + rev = version + "-release"; + sha256 = "1r50lm6n59jzdwpp53n0c0hp3aj1jxn304bk5gh830226gsaf2hn"; + }; + + meta = with stdenv.lib; { + description = "Test classes and test cases using decorators, execute test cases by command line, and get clear reports"; + homepage = https://pypi.python.org/pypi/ptest; + license = licenses.asl20; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5d31caa7b146..bdf5689e6d24 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3447,22 +3447,7 @@ in { ldap3 = callPackage ../development/python-modules/ldap3 {}; - ptest = buildPythonPackage rec { - name = pname + "-" + version; - pname = "ptest"; - version = "1.5.3"; - src = pkgs.fetchFromGitHub { - owner = "KarlGong"; - repo = pname; - rev = version + "-release"; - sha256 = "1r50lm6n59jzdwpp53n0c0hp3aj1jxn304bk5gh830226gsaf2hn"; - }; - meta = { - description = "Test classes and test cases using decorators, execute test cases by command line, and get clear reports"; - homepage = https://pypi.python.org/pypi/ptest; - license = licenses.asl20; - }; - }; + ptest = callPackage ../development/python-modules/ptest { }; ptyprocess = callPackage ../development/python-modules/ptyprocess { };