2021-04-26 23:45:30 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-05-07 23:18:34 +02:00
|
|
|
, fetchpatch
|
2021-04-26 23:45:30 +02:00
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, hypothesis
|
|
|
|
, six
|
|
|
|
, strict-rfc3339
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rfc3339-validator";
|
2021-05-14 19:28:51 +02:00
|
|
|
version = "0.1.4";
|
2021-04-26 23:45:30 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "rfc3339_validator";
|
|
|
|
inherit version;
|
2021-05-14 19:28:51 +02:00
|
|
|
sha256 = "0srg0b89aikzinw72s433994k5gv5lfyarq1adhas11kz6yjm2hk";
|
2021-04-26 23:45:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook hypothesis strict-rfc3339 ];
|
|
|
|
pythonImportsCheck = [ "rfc3339_validator" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "RFC 3339 validator for Python";
|
|
|
|
homepage = "https://github.com/naimetti/rfc3339-validator";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ AluisioASG ];
|
|
|
|
};
|
|
|
|
}
|