1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, six
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "purl";
10 version = "1.6";
11
12 src = fetchFromGitHub {
13 owner = "codeinthehole";
14 repo = "purl";
15 rev = version;
16 hash = "sha256-Jb3JRW/PtQ7NlO4eQ9DmTPu/sjvFTg2mztphoIF79gc=";
17 };
18
19 propagatedBuildInputs = [
20 six
21 ];
22
23 nativeCheckInputs = [
24 pytestCheckHook
25 ];
26
27 pythonImportsCheck = [
28 "purl"
29 ];
30
31 meta = with lib; {
32 description = "Immutable URL class for easy URL-building and manipulation";
33 homepage = "https://github.com/codeinthehole/purl";
34 license = licenses.mit;
35 maintainers = with maintainers; [ jonringer ];
36 };
37}